client

package
v0.0.0-...-058cf32 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2025 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultNewClient               = NewClient
	DefaultNewClientFromRestConfig = NewClientFromRestConfig
)

Functions

func AddToScheme

func AddToScheme() error

func EnsureKsctlConfigFile

func EnsureKsctlConfigFile() (string, error)

func GetMasterUserRecord

func GetMasterUserRecord(cl runtimeclient.Client, namespace, name string) (*toolchainv1alpha1.MasterUserRecord, 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 NewClient

func NewClient(token, apiEndpoint string) (runtimeclient.Client, 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 CommandCreator

type CommandCreator func(name string, arg ...string) *exec.Cmd

type SpaceBindingMatchingLabel

type SpaceBindingMatchingLabel func(runtimeclient.MatchingLabels)

func ForMasterUserRecord

func ForMasterUserRecord(murName string) SpaceBindingMatchingLabel

func ForSpace

func ForSpace(spaceName string) SpaceBindingMatchingLabel

Jump to

Keyboard shortcuts

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