servicelog

package
v0.18.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 31, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateListSLRequest added in v0.10.0

func CreateListSLRequest(ocmClient *sdk.Connection, cluster *cmv1.Cluster, allMessages bool, internalMessages bool) *sdk.Request

func FetchServiceLogs added in v0.10.0

func FetchServiceLogs(clusterID string) (*sdk.Response, error)

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

func NewCmdServiceLog() *cobra.Command

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL