Documentation
¶
Index ¶
- func CreateListSLRequest(ocmClient *sdk.Connection, cluster *cmv1.Cluster, allMessages bool, ...) *sdk.Request
- func FetchServiceLogs(clusterID string) (*sdk.Response, error)
- func GetServiceLogsSince(clusterID string, days int) ([]sl.ServiceLogShort, error)
- func NewCmdServiceLog() *cobra.Command
- type PostCmdOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateListSLRequest ¶ added in v0.10.0
func FetchServiceLogs ¶ added in v0.10.0
func GetServiceLogsSince ¶ added in v0.18.0
func GetServiceLogsSince(clusterID string, days int) ([]sl.ServiceLogShort, error)
GetServiceLogsSince returns the service logs for a cluster sent between time.Now() and time.Now()-duration. the first parameter will contain a slice of the service logs from the given time period, while the second return value indicates if an error has happened.
func NewCmdServiceLog ¶
Types ¶
type PostCmdOptions ¶ added in v0.14.1
type PostCmdOptions struct {
Message servicelog.Message
ClustersFile servicelog.ClustersFile
Template string
TemplateParams []string
ClusterId string
// 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
func (*PostCmdOptions) Validate ¶ added in v0.14.1
func (o *PostCmdOptions) Validate() error
Click to show internal directories.
Click to hide internal directories.