k8s

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Init(ctx context.Context) error
	Get() *kubernetes.Clientset
}

Client to k8s.

func NewClient

func NewClient(config config.Manager, logger *zap.Logger) Client

NewClient constructor for k8s client.

type CreationConfig

type CreationConfig struct {
	Image            string
	Resources        model.Resources
	Envs             []model.EnvVar
	Commands         []string
	ExposeExternalIP bool
}

CreationConfig for load-generator deploying.

type Manager

type Manager interface {
	Create(ctx context.Context, cfg CreationConfig) (*model.LoadGenerator, error)
	Delete(ctx context.Context, name string) error
	DeleteAll(ctx context.Context) error
	List(ctx context.Context) ([]model.LoadGenerator, error)
}

Manager - k8s manager.

func NewManager

func NewManager(client Client, config config.Manager, logger *zap.Logger) (Manager, error)

NewManager constructor for Manager.

Directories

Path Synopsis
Package mock_k8s is a generated GoMock package.
Package mock_k8s is a generated GoMock package.

Jump to

Keyboard shortcuts

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