castai

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRestyClient added in v0.13.0

func NewRestyClient(url, key, ca string, level logrus.Level, timeout time.Duration, version string) (*resty.Client, error)

NewRestyClient configures a default instance of the resty.Client used to do HTTP requests.

Types

type Client

type Client interface {
	SendCloudEvent(ctx context.Context, req *CloudEventRequest) error
}

func NewClient

func NewClient(log *logrus.Logger, rest *resty.Client, clusterID string) Client

type CloudEventRequest

type CloudEventRequest struct {
	EventType  string  `json:"event_type"`
	NodeID     string  `json:"node_id"`
	ProviderID *string `json:"provider_id"`
}

Jump to

Keyboard shortcuts

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