Documentation
¶
Index ¶
- Variables
- func AddToScheme() error
- func EnsureKsctlConfigFile() (string, error)
- func GetMasterUserRecord(cl runtimeclient.Client, namespace, name string) (*toolchainv1alpha1.MasterUserRecord, error)
- func GetNSTemplateTier(cfg configuration.ClusterConfig, cl runtimeclient.Client, name string) (*toolchainv1alpha1.NSTemplateTier, error)
- func GetSpace(cl runtimeclient.Client, namespace, name string) (*toolchainv1alpha1.Space, error)
- func GetUserSignup(cl runtimeclient.Client, namespace, name string) (*toolchainv1alpha1.UserSignup, error)
- func GetUserTier(cfg configuration.ClusterConfig, cl runtimeclient.Client, name string) (*toolchainv1alpha1.UserTier, error)
- func ListSpaceBindings(cl runtimeclient.Client, namespace string, opts ...SpaceBindingMatchingLabel) ([]toolchainv1alpha1.SpaceBinding, error)
- func NewClient(token, apiEndpoint string) (runtimeclient.Client, error)
- func NewClientFromRestConfig(cfg *rest.Config) (runtimeclient.Client, error)
- func NewClientWithTransport(token, apiEndpoint string, transport http.RoundTripper) (runtimeclient.Client, error)
- func NewKubeClientFromKubeConfig(kubeConfigPath string) (cl runtimeclient.Client, err error)
- func PatchMasterUserRecord(ctx *clicontext.CommandContext, name string, ...) error
- func PatchSpace(ctx *clicontext.CommandContext, name string, ...) error
- func PatchUserSignup(ctx *clicontext.CommandContext, name string, ...) error
- type CommandCreator
- type SpaceBindingMatchingLabel
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultNewClient = NewClient DefaultNewClientFromRestConfig = NewClientFromRestConfig )
Functions ¶
func AddToScheme ¶
func AddToScheme() error
func EnsureKsctlConfigFile ¶
func GetMasterUserRecord ¶
func GetMasterUserRecord(cl runtimeclient.Client, namespace, name string) (*toolchainv1alpha1.MasterUserRecord, error)
func GetNSTemplateTier ¶
func GetNSTemplateTier(cfg configuration.ClusterConfig, cl runtimeclient.Client, name string) (*toolchainv1alpha1.NSTemplateTier, error)
func GetSpace ¶
func GetSpace(cl runtimeclient.Client, namespace, name string) (*toolchainv1alpha1.Space, error)
func GetUserSignup ¶
func GetUserSignup(cl runtimeclient.Client, namespace, name string) (*toolchainv1alpha1.UserSignup, error)
func GetUserTier ¶
func GetUserTier(cfg configuration.ClusterConfig, cl runtimeclient.Client, name string) (*toolchainv1alpha1.UserTier, error)
func ListSpaceBindings ¶
func ListSpaceBindings(cl runtimeclient.Client, namespace string, opts ...SpaceBindingMatchingLabel) ([]toolchainv1alpha1.SpaceBinding, error)
func NewClientFromRestConfig ¶
func NewClientFromRestConfig(cfg *rest.Config) (runtimeclient.Client, error)
func NewClientWithTransport ¶
func NewClientWithTransport(token, apiEndpoint string, transport http.RoundTripper) (runtimeclient.Client, error)
func NewKubeClientFromKubeConfig ¶
func NewKubeClientFromKubeConfig(kubeConfigPath string) (cl runtimeclient.Client, err error)
NewKubeClientFromKubeConfig initializes a runtime client starting from a KubeConfig file path.
func PatchMasterUserRecord ¶
func PatchMasterUserRecord(ctx *clicontext.CommandContext, name string, changeMasterUserRecord func(*toolchainv1alpha1.MasterUserRecord) (bool, error), afterMessage string) error
func PatchSpace ¶
func PatchSpace(ctx *clicontext.CommandContext, name string, changeSpace func(*toolchainv1alpha1.Space) (bool, error), afterMessage string) error
func PatchUserSignup ¶
func PatchUserSignup(ctx *clicontext.CommandContext, name string, changeUserSignup func(*toolchainv1alpha1.UserSignup) (bool, error), afterMessage string) error
Types ¶
type SpaceBindingMatchingLabel ¶
type SpaceBindingMatchingLabel func(runtimeclient.MatchingLabels)
func ForMasterUserRecord ¶
func ForMasterUserRecord(murName string) SpaceBindingMatchingLabel
func ForSpace ¶
func ForSpace(spaceName string) SpaceBindingMatchingLabel
Click to show internal directories.
Click to hide internal directories.