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

Side by Side Diff: state/api/params/params.go

Issue 44540043: apiserver/logger: adding command for debug log
Patch Set: apiserver/logger: adding command for debug log Created 11 years, 3 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:
View unified diff | Download patch
OLDNEW
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 23 matching lines...) Expand all
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 } 42 }
43 43
44 // DebugLogWatching holds the arguments for the debug log watcher. It
45 // defines the initial number of lines as well as an entity (machine
46 // or unit) to debug defined by its tag. In case of an empty tag the
47 // whole debug log is watched.
48 type DebugLogWatching struct {
william.reade 2014/01/14 14:41:41 Still not keen on the noun "Watching". If anything
mue 2014/01/15 13:14:17 Sounds reasonable.
49 Lines int
50 Tag string
51 }
52
53 // DebugLogWatchings holds multiple debug log watching arguments.
54 type DebugLogWatchings struct {
55 Watchings []DebugLogWatching
56 }
57
44 // StatusData contains additional information for a status. 58 // StatusData contains additional information for a status.
45 type StatusData map[string]interface{} 59 type StatusData map[string]interface{}
46 60
47 // AddRelation holds the parameters for making the AddRelation call. 61 // AddRelation holds the parameters for making the AddRelation call.
48 // The endpoints specified are unordered. 62 // The endpoints specified are unordered.
49 type AddRelation struct { 63 type AddRelation struct {
50 Endpoints []string 64 Endpoints []string
51 } 65 }
52 66
53 // AddRelationResults holds the results of a AddRelation call. The Endpoints 67 // AddRelationResults holds the results of a AddRelation call. The Endpoints
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after
558 type DeployerConnectionValues struct { 572 type DeployerConnectionValues struct {
559 StateAddresses []string 573 StateAddresses []string
560 APIAddresses []string 574 APIAddresses []string
561 SyslogPort int 575 SyslogPort int
562 } 576 }
563 577
564 // StatusParams holds parameters for the Status call. 578 // StatusParams holds parameters for the Status call.
565 type StatusParams struct { 579 type StatusParams struct {
566 Patterns []string 580 Patterns []string
567 } 581 }
OLDNEW

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