events

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	ListEvents(instanceIDs []string) ([]EventDTO, error)
}

Client is the interface to interact with the KEB /events API as an HTTP client using OIDC ID token in JWT format.

func NewClient

func NewClient(url string, httpClient *http.Client) Client

NewClient constructs and returns new Client for KEB /events API It takes the following arguments:

type EventDTO

type EventDTO struct {
	ID          string
	Level       EventLevel
	InstanceID  *string
	OperationID *string
	Message     string
	CreatedAt   time.Time
}

type EventFilter

type EventFilter struct {
	InstanceIDs  []string
	OperationIDs []string
}

type EventLevel

type EventLevel string
const (
	InfoEventLevel  EventLevel = "info"
	ErrorEventLevel EventLevel = "error"
)

Jump to

Keyboard shortcuts

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