ocm

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConnectionWithTemporaryToken

func NewConnectionWithTemporaryToken(url, token string) (*sdk.Connection, error)

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(conn *sdk.Connection) Client

NewClient Not sure if I want this to be part of the ocmClient Struct yet. Any ways it needs to be exposed to the user for them to close the connection

func (Client) ListServiceLogs

func (c Client) ListServiceLogs(clusterID string, query ...string) ([]ServiceLog, error)

func (Client) PostInternalServiceLog

func (c Client) PostInternalServiceLog(clusterId string, description string) error

func (Client) PostServiceLog

func (c Client) PostServiceLog(clusterId string, template templates.Template) error

type ServiceLog

type ServiceLog struct {
	ClusterId     string
	ClusterUuid   string
	CreatedAt     time.Time
	CreatedBy     string
	Desc          string
	EventStreamId string
	Href          string
	Id            string
	InternalOnly  bool
	Kind          string
	LogType       string
	ServiceName   string
	Severity      string
	Summary       string
	Timestamp     time.Time
	Username      string
}

ServiceLog is what is received from OCM

Jump to

Keyboard shortcuts

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