Documentation
¶
Index ¶
- type GetClusterStatus
- type GetEvents
- func (t *GetEvents) Do() (chan event.Event, error)
- func (t *GetEvents) GetRaw() (chan []byte, error)
- func (t *GetEvents) GetReader() (event.ReadCloser, error)
- func (t *GetEvents) NewTimeoutReader(timeout time.Duration) (event.ReadCloser, error)
- func (t *GetEvents) SetDuration(duration time.Duration) *GetEvents
- func (t *GetEvents) SetFilter(filters ...string) *GetEvents
- func (t *GetEvents) SetFilters(filters []string) *GetEvents
- func (t *GetEvents) SetLimit(limit uint64) *GetEvents
- func (t *GetEvents) SetNamespace(s string) *GetEvents
- func (t *GetEvents) SetNodename(s string) *GetEvents
- func (t *GetEvents) SetRelatives(s bool) *GetEvents
- func (t *GetEvents) SetSelector(s string) *GetEvents
- func (t *GetEvents) SetWait(wait bool) *GetEvents
- type GetLogs
- func (t GetLogs) Do() (chan event.Event, error)
- func (t GetLogs) GetRaw() (chan []byte, error)
- func (t *GetLogs) GetReader() (event.ReadCloser, error)
- func (t *GetLogs) SetFilters(filters *[]string) *GetLogs
- func (t *GetLogs) SetFollow(n *bool) *GetLogs
- func (t *GetLogs) SetLines(n *int) *GetLogs
- func (t *GetLogs) SetPaths(l *[]string) *GetLogs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetClusterStatus ¶
type GetClusterStatus struct {
// contains filtered or unexported fields
}
func NewGetClusterStatus ¶
func NewGetClusterStatus(t api.ClientInterface) *GetClusterStatus
func (GetClusterStatus) Get ¶
func (t GetClusterStatus) Get() ([]byte, error)
Get fetches the daemon status structure from the agent api
func (*GetClusterStatus) SetNamespace ¶
func (t *GetClusterStatus) SetNamespace(s string) *GetClusterStatus
func (*GetClusterStatus) SetSelector ¶
func (t *GetClusterStatus) SetSelector(s string) *GetClusterStatus
type GetEvents ¶
type GetEvents struct {
Limit *uint64
Filters []string
Wait bool
Duration *time.Duration
// contains filtered or unexported fields
}
GetEvents describes the events request options.
func NewGetEvents ¶
func NewGetEvents(t api.ClientInterface) *GetEvents
NewGetEvents allocates a EventsCmdConfig struct and sets default values to its keys.
func (*GetEvents) GetReader ¶
func (t *GetEvents) GetReader() (event.ReadCloser, error)
GetReader returns event.ReadCloser for GetEventReader
func (*GetEvents) NewTimeoutReader ¶
NewTimeoutReader returns a non-blocking event.ReadCloser that yields nil if no events are read within the specified timeout
func (*GetEvents) SetFilters ¶
func (*GetEvents) SetNamespace ¶
func (*GetEvents) SetNodename ¶
func (*GetEvents) SetRelatives ¶
func (*GetEvents) SetSelector ¶
type GetLogs ¶
type GetLogs struct {
Filters *[]string
Paths *[]string
Lines *int
Follow *bool
// contains filtered or unexported fields
}
GetLogs describes the events request options.
func NewGetLogs ¶
func NewGetLogs(t api.ClientInterface, nodename string) *GetLogs
NewGetLogs allocates a EventsCmdConfig struct and sets default values to its keys.
func (*GetLogs) GetReader ¶
func (t *GetLogs) GetReader() (event.ReadCloser, error)
GetReader returns event.ReadCloser for GetLogReader
func (*GetLogs) SetFilters ¶
Click to show internal directories.
Click to hide internal directories.