api

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	AppName       string
	RepoDirectory string
}

func New

func New(appName, repoDirectory string) *API

func (*API) AddComponent

func (api *API) AddComponent(projectName, componentName string) error

func (*API) AddGroupRBAC

func (api *API) AddGroupRBAC(projectName, groupName, roleName string) error

func (*API) CreateCustomResourceQuota added in v0.3.0

func (api *API) CreateCustomResourceQuota(namespace string, customResourceQuota models.CustomResourceQuota, existsOk bool) error

func (*API) CreateGroup

func (api *API) CreateGroup(groupName string, users []string, existsOk bool) error

func (*API) CreateNamespace

func (api *API) CreateNamespace(
	projectName, projectOwner, projectDisplayName string,
	projectQuota string,
	disableLimitrange bool,
	existsOk bool,
) error

func (*API) CreateOperatorGroup

func (api *API) CreateOperatorGroup(namespace string, singleNamespace bool) error

func (*API) CreateProject

func (api *API) CreateProject(
	projectName, projectOwner, projectDisplayName string,
	projectQuota string,
	disableLimitrange bool,
) error

func (*API) CreateRoleBinding

func (api *API) CreateRoleBinding(groupName, roleName string) error

func (*API) CreateSubscription

func (api *API) CreateSubscription(name, catalog, namespace, channel string, manual bool) error

func (*API) Onboard added in v0.3.0

func (api *API) Onboard(path string) error

func (*API) UpdateFromConfig

func (api *API) UpdateFromConfig(config *viper.Viper)

func (*API) ValidateQuota

func (api *API) ValidateQuota(projectQuota string) error

Jump to

Keyboard shortcuts

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