Documentation ¶
Index ¶
- Variables
- func AddToScheme() error
- func Create(term ioutils.Terminal, cl runtimeclient.Client, obj runtimeclient.Object) error
- func Ensure(term ioutils.Terminal, cl runtimeclient.Client, obj runtimeclient.Object) (bool, 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 GetRouteURL(term ioutils.Terminal, cl runtimeclient.Client, ...) (string, 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 Create ¶
func Create(term ioutils.Terminal, cl runtimeclient.Client, obj runtimeclient.Object) error
Create creates the resource only if it does not exist yet (ie, if a resource of the same kind in the same namespace/name doesn't exist yet)
func Ensure ¶
func Ensure(term ioutils.Terminal, cl runtimeclient.Client, obj runtimeclient.Object) (bool, error)
Ensure creates or updates the given object and returns if the object was either created or updated (which means that no error occurred and the administrator confirmed execution of the action)
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 GetRouteURL ¶
func GetRouteURL(term ioutils.Terminal, cl runtimeclient.Client, namespacedName types.NamespacedName) (string, error)
GetRouteURL return the scheme+host of the route with the given namespaced name. Since routes may take a bit of time to be available, this func uses a wait loop to make sure that the route was created, or fails after a timeout.
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.