cli

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EpinioCLI

type EpinioCLI struct {
	KubeClient *epinio.KubeClient
}

EpinioCLI handles the CLI commands, calling the Kubernetes API and handling the display

func NewEpinioCLI

func NewEpinioCLI(kubeClient kubernetes.Interface) (e *EpinioCLI)

func (*EpinioCLI) CreateRole

func (e *EpinioCLI) CreateRole(ctx context.Context, id, name string, isDefault bool, actions []string, interactive bool) error

func (*EpinioCLI) CreateUser

func (e *EpinioCLI) CreateUser(ctx context.Context, username, password string, namespaces, roles []string, interactive bool) error

func (*EpinioCLI) DescribeRoles

func (e *EpinioCLI) DescribeRoles(ctx context.Context, ids []string) error

func (*EpinioCLI) DescribeUsers

func (e *EpinioCLI) DescribeUsers(ctx context.Context, usernames []string) error

func (*EpinioCLI) EditUser

func (e *EpinioCLI) EditUser(ctx context.Context, username string) error

func (*EpinioCLI) GetRoles

func (e *EpinioCLI) GetRoles(ctx context.Context, names []string) error

func (*EpinioCLI) GetUsers

func (e *EpinioCLI) GetUsers(ctx context.Context, usernames []string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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