client

package
v0.0.0-...-71c06b5 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2026 License: Apache-2.0 Imports: 27 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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