serviceaccount

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandExecutor

type CommandExecutor interface {
	ExecCommand(ctx context.Context, targetDogu string, namespace string, command *core.ExposedCommand, params []string) (*bytes.Buffer, error)
}

CommandExecutor is used to execute command in a dogu

type Creator

type Creator struct {
	Registry registry.Registry `json:"registry"`
	Executor CommandExecutor   `json:"executor"`
}

Creator is the unit to handle the creation of service accounts

func NewServiceAccountCreator

func NewServiceAccountCreator(registry registry.Registry, commandExecutor CommandExecutor) *Creator

NewServiceAccountCreator creates a new instance of ServiceAccountCreator

func (*Creator) CreateServiceAccounts

func (c *Creator) CreateServiceAccounts(ctx context.Context, doguResource *k8sv1.Dogu, dogu *core.Dogu) error

CreateServiceAccounts creates all service account for a given dogu

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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