keb

package
v0.0.0-...-e2054a2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	Namespace = "kmc"
	Subsystem = "keb"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	HTTPClient *http.Client
	Logger     *zap.SugaredLogger
	Config     *Config
}

func NewClient

func NewClient(config *Config, logger *zap.SugaredLogger) *Client

func (Client) GetAllRuntimes

func (c Client) GetAllRuntimes(req *http.Request) (*kebruntime.RuntimesPage, error)

func (Client) NewRequest

func (c Client) NewRequest() (*http.Request, error)

type Config

type Config struct {
	URL              string        `envconfig:"KEB_URL" required:"true"`
	Timeout          time.Duration `envconfig:"KEB_TIMEOUT" default:"30s"`
	RetryCount       int           `envconfig:"KEB_RETRY_COUNT" default:"5"`
	PollWaitDuration time.Duration `envconfig:"KEB_POLL_WAIT_DURATION" default:"10m"`
}

Jump to

Keyboard shortcuts

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