Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1192)

Delta Between Two Patch Sets: state/api/params/params.go

Issue 44540043: apiserver/logger: adding command for debug log
Left Patch Set: Created 11 years, 4 months ago
Right Patch Set: apiserver/logger: adding command for debug log Created 11 years, 2 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Right: Side by side diff | Download
LEFTRIGHT
(no file at all)
1 // Copyright 2013 Canonical Ltd. 1 // Copyright 2013 Canonical Ltd.
2 // Licensed under the AGPLv3, see LICENCE file for details. 2 // Licensed under the AGPLv3, see LICENCE file for details.
3 3
4 package params 4 package params
5 5
6 import ( 6 import (
7 "bytes" 7 "bytes"
8 "encoding/json" 8 "encoding/json"
9 "fmt" 9 "fmt"
10 10
(...skipping 21 matching lines...) Expand all
32 } 32 }
33 if err := result.Results[0].Error; err != nil { 33 if err := result.Results[0].Error; err != nil {
34 return err 34 return err
35 } 35 }
36 return nil 36 return nil
37 } 37 }
38 38
39 // ErrorResult holds the error status of a single operation. 39 // ErrorResult holds the error status of a single operation.
40 type ErrorResult struct { 40 type ErrorResult struct {
41 Error *Error 41 Error *Error
42 }
43
44 // EntityLogRequest holds the arguments for the debug log watcher. It
45 // defines the initial number of lines as well as an entity (environment,
46 // machine or unit) to debug defined by its tag.
47 type EntityLogRequest struct {
48 Lines int
49 Tag string
50 }
51
52 // EntityLogRequests holds multiple debug log watching arguments.
53 type EntityLogRequests struct {
54 Entities []EntityLogRequest
42 } 55 }
43 56
44 // StatusData contains additional information for a status. 57 // StatusData contains additional information for a status.
45 type StatusData map[string]interface{} 58 type StatusData map[string]interface{}
46 59
47 // AddRelation holds the parameters for making the AddRelation call. 60 // AddRelation holds the parameters for making the AddRelation call.
48 // The endpoints specified are unordered. 61 // The endpoints specified are unordered.
49 type AddRelation struct { 62 type AddRelation struct {
50 Endpoints []string 63 Endpoints []string
51 } 64 }
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after
570 type DeployerConnectionValues struct { 583 type DeployerConnectionValues struct {
571 StateAddresses []string 584 StateAddresses []string
572 APIAddresses []string 585 APIAddresses []string
573 SyslogPort int 586 SyslogPort int
574 } 587 }
575 588
576 // StatusParams holds parameters for the Status call. 589 // StatusParams holds parameters for the Status call.
577 type StatusParams struct { 590 type StatusParams struct {
578 Patterns []string 591 Patterns []string
579 } 592 }
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b