Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCmdServiceLog ¶
Types ¶
type LogEntryResponseView ¶ added in v0.19.0
type LogEntryResponseView struct {
Items []*LogEntryView `json:"items"`
Kind string `json:"kind"`
Page int `json:"page"`
Size int `json:"size"`
Total int `json:"total"`
}
type LogEntryView ¶ added in v0.19.0
type LogEntryView struct {
ClusterID string `json:"cluster_id"`
ClusterUUID string `json:"cluster_uuid"`
CreatedAt time.Time `json:"created_at"`
CreatedBy string `json:"created_by"`
Description string `json:"description"`
DocReferences []string `json:"doc_references"`
EventStreamID string `json:"event_stream_id"`
Href string `json:"href"`
ID string `json:"id"`
InternalOnly bool `json:"internal_only"`
Kind string `json:"kind"`
LogType string `json:"log_type"`
ServiceName string `json:"service_name"`
Severity string `json:"severity"`
Summary string `json:"summary"`
Timestamp time.Time `json:"timestamp"`
Username string `json:"username"`
}
type PostCmdOptions ¶ added in v0.14.1
type PostCmdOptions struct {
Message sl.Message
Template string
TemplateParams []string
Overrides []string
InternalOnly bool
ClusterId string
SkipLinkCheck bool
// contains filtered or unexported fields
}
func (*PostCmdOptions) FindLeftovers ¶ added in v0.14.1
func (o *PostCmdOptions) FindLeftovers(s string) (matches []string)
func (*PostCmdOptions) Init ¶ added in v0.14.1
func (o *PostCmdOptions) Init() error
func (*PostCmdOptions) Run ¶ added in v0.14.1
func (o *PostCmdOptions) Run() error
Run has its own parameter substitution pipeline rather than using servicelog.Post because -r overrides must be applied between template loading and leftover checking, and -p params also substitute into OCM filter files (-f), not just the message.
func (*PostCmdOptions) Validate ¶ added in v0.14.1
func (o *PostCmdOptions) Validate() error
Click to show internal directories.
Click to hide internal directories.