usecases

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2023 License: Apache-2.0 Imports: 40 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultLocalServerSuccessHTML string

DefaultLocalServerSuccessHTML is a default response body on authorization success.

Functions

func NewUseCaseBase

func NewUseCaseBase(name string, config *config.Config) useCaseBase

NewUseCaseBase returns a new basic use case implementation

Types

type ClusterRenderData

type ClusterRenderData struct {
	ApiServerAddress string
	M8Endpoint       string
	Jwt              string
	ClusterName      string
}

Prepare some data to insert into the template.

type IndexPageRenderData

type IndexPageRenderData struct {
	M8Address string
	Version   string
}

type UpdateKubeconfigUseCase added in v0.4.10

type UpdateKubeconfigUseCase struct {
	// contains filtered or unexported fields
}

func (*UpdateKubeconfigUseCase) Run added in v0.4.10

type UseCase

type UseCase interface {
	// Run starts the execution of the behaviour of a use case
	Run(context.Context) error
}

UseCase is the interface an UseCase must implement to be executable

func NewAuthUsecase

func NewAuthUsecase(configManager *config.ClientConfigManager, force, silent bool) UseCase

func NewCreateAPITokenUsecase added in v0.1.2

func NewCreateAPITokenUsecase(configManager *config.ClientConfigManager, userId string, scopes []string, validity time.Duration) UseCase

func NewCreateClusterUseCase

func NewCreateClusterUseCase(config *config.Config, name, apiServerAddress string, caCertBundle []byte) UseCase

func NewCreateRoleBindingUseCase

func NewCreateRoleBindingUseCase(config *config.Config, mailAddresses []string, role, scope, resource string) UseCase

func NewCreateTenantUseCase

func NewCreateTenantUseCase(config *config.Config, name, tenant string) UseCase

func NewCreateUserUseCase

func NewCreateUserUseCase(config *config.Config, username, mailaddress string) UseCase

func NewDeleteClusterUseCase

func NewDeleteClusterUseCase(config *config.Config, name string) UseCase

func NewDeleteTenantUseCase

func NewDeleteTenantUseCase(config *config.Config, name string) UseCase

func NewDeleteUserRoleBindingUseCase

func NewDeleteUserRoleBindingUseCase(config *config.Config, id string) UseCase

func NewDeleteUserUseCase

func NewDeleteUserUseCase(config *config.Config, email string) UseCase

func NewGetAuditLogByUserUseCase added in v0.3.8

func NewGetAuditLogByUserUseCase(config *config.Config, outputOptions *output.OutputOptions, auditLogOptions *output.AuditLogOptions, email string) UseCase

func NewGetAuditLogUseCase added in v0.1.6

func NewGetAuditLogUseCase(config *config.Config, outputOptions *output.OutputOptions, auditLogOptions *output.AuditLogOptions) UseCase

func NewGetAuditLogUserActionsUseCase added in v0.3.8

func NewGetAuditLogUserActionsUseCase(config *config.Config, outputOptions *output.OutputOptions, auditLogOptions *output.AuditLogOptions, email string) UseCase

func NewGetAuditLogUsersOverviewUseCase added in v0.3.8

func NewGetAuditLogUsersOverviewUseCase(config *config.Config, outputOptions *output.OutputOptions, timestamp time.Time) UseCase

func NewGetClusterAccessUseCase added in v0.1.1

func NewGetClusterAccessUseCase(config *config.Config, outputOptions *output.OutputOptions, tenantName, clusterName string) UseCase

func NewGetClusterCredentialsUseCase

func NewGetClusterCredentialsUseCase(configManager *config.ClientConfigManager, clusterId, role string) UseCase

func NewGetClustersUseCase

func NewGetClustersUseCase(config *config.Config, outputOptions *output.OutputOptions) UseCase

func NewGetRoleBindingsUseCase

func NewGetRoleBindingsUseCase(config *config.Config, email string, outputOptions *output.OutputOptions) UseCase

func NewGetRolesUseCase

func NewGetRolesUseCase(config *config.Config, outputOptions *output.OutputOptions) UseCase

func NewGetScopesUseCase

func NewGetScopesUseCase(config *config.Config, outputOptions *output.OutputOptions) UseCase

func NewGetServerVersionUseCase

func NewGetServerVersionUseCase(config *config.Config) UseCase

func NewGetTenantUsersUseCase

func NewGetTenantUsersUseCase(config *config.Config, tenantName string, outputOptions *output.OutputOptions) UseCase

func NewGetTenantsUseCase

func NewGetTenantsUseCase(config *config.Config, outputOptions *output.OutputOptions) UseCase

func NewGetUsersUseCase

func NewGetUsersUseCase(config *config.Config, outputOptions *output.OutputOptions) UseCase

func NewGrantClusterAccessUseCase added in v0.1.1

func NewGrantClusterAccessUseCase(config *config.Config, tenantName, clusterName string) UseCase

func NewRevokeClusterAccessUseCase added in v0.1.1

func NewRevokeClusterAccessUseCase(config *config.Config, tenantName, clusterName string) UseCase

func NewUpdateClusterUseCase

func NewUpdateClusterUseCase(config *config.Config, name, newName, newApiServerAddress string, newCaCertBundle []byte) UseCase

func NewUpdateKubeconfigUseCase added in v0.4.10

func NewUpdateKubeconfigUseCase(configManager *config.ClientConfigManager, kubeConfigPath string, overwrite bool) UseCase

func NewUpdateTenantUseCase

func NewUpdateTenantUseCase(config *config.Config, currentName, newName string) UseCase

Jump to

Keyboard shortcuts

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