Documentation ¶
Index ¶
- Constants
- func ApplyDirectClusterEndpointOptions(options kubeconfig.ContextOptions, cluster *managementv1.Cluster, path string, ...) kubeconfig.ContextOptions
- func CreateClusterContextOptions(baseClient client.Client, config string, cluster *managementv1.Cluster, ...) (kubeconfig.ContextOptions, error)
- func CreateManagementContextOptions(baseClient client.Client, config string, setActive bool, log log.Logger) (kubeconfig.ContextOptions, error)
- func CreateSpaceInstanceOptions(ctx context.Context, baseClient client.Client, config string, ...) (kubeconfig.ContextOptions, error)
- func CreateVClusterContextOptions(baseClient client.Client, config string, cluster *managementv1.Cluster, ...) (kubeconfig.ContextOptions, error)
- func CreateVirtualClusterInstanceOptions(ctx context.Context, baseClient client.Client, config string, ...) (kubeconfig.ContextOptions, error)
- func NewClusterCmd(globalFlags *flags.GlobalFlags) *cobra.Command
- func NewManagementCmd(globalFlags *flags.GlobalFlags) *cobra.Command
- func NewSpaceCmd(globalFlags *flags.GlobalFlags, defaults *pdefaults.Defaults) *cobra.Command
- func NewUseCmd(globalFlags *flags.GlobalFlags, defaults *pdefaults.Defaults) *cobra.Command
- func NewVirtualClusterCmd(globalFlags *flags.GlobalFlags, defaults *pdefaults.Defaults) *cobra.Command
- type ClusterCmd
- type ManagementCmd
- type SpaceCmd
- type VirtualClusterCmd
Constants ¶
View Source
const ( // LoftDirectClusterEndpoint is a cluster annotation that tells the loft cli to use this endpoint instead of // the default loft server address to connect to this cluster. LoftDirectClusterEndpoint = "loft.sh/direct-cluster-endpoint" // LoftDirectClusterEndpointInsecure is a cluster annotation that tells the loft cli to allow untrusted certificates LoftDirectClusterEndpointInsecure = "loft.sh/direct-cluster-endpoint-insecure" // LoftDirectClusterEndpointCaData is a cluster annotation that tells the loft cli which cluster ca data to use LoftDirectClusterEndpointCaData = "loft.sh/direct-cluster-endpoint-ca-data" )
Variables ¶
This section is empty.
Functions ¶
func ApplyDirectClusterEndpointOptions ¶
func ApplyDirectClusterEndpointOptions(options kubeconfig.ContextOptions, cluster *managementv1.Cluster, path string, log log.Logger) kubeconfig.ContextOptions
func CreateClusterContextOptions ¶
func CreateClusterContextOptions(baseClient client.Client, config string, cluster *managementv1.Cluster, spaceName string, disableClusterGateway, setActive bool, log log.Logger) (kubeconfig.ContextOptions, error)
func CreateManagementContextOptions ¶
func CreateManagementContextOptions(baseClient client.Client, config string, setActive bool, log log.Logger) (kubeconfig.ContextOptions, error)
func CreateSpaceInstanceOptions ¶
func CreateSpaceInstanceOptions(ctx context.Context, baseClient client.Client, config string, projectName string, spaceInstance *managementv1.SpaceInstance, disableClusterGateway, setActive bool, log log.Logger) (kubeconfig.ContextOptions, error)
func CreateVClusterContextOptions ¶
func CreateVClusterContextOptions(baseClient client.Client, config string, cluster *managementv1.Cluster, spaceName, virtualClusterName string, disableClusterGateway, setActive bool, log log.Logger) (kubeconfig.ContextOptions, error)
func CreateVirtualClusterInstanceOptions ¶
func CreateVirtualClusterInstanceOptions(ctx context.Context, baseClient client.Client, config string, projectName string, virtualClusterInstance *managementv1.VirtualClusterInstance, disableClusterGateway, setActive bool, log log.Logger) (kubeconfig.ContextOptions, error)
func NewClusterCmd ¶
func NewClusterCmd(globalFlags *flags.GlobalFlags) *cobra.Command
NewClusterCmd creates a new command
func NewManagementCmd ¶
func NewManagementCmd(globalFlags *flags.GlobalFlags) *cobra.Command
NewManagementCmd creates a new command
func NewSpaceCmd ¶
NewSpaceCmd creates a new command
func NewVirtualClusterCmd ¶
func NewVirtualClusterCmd(globalFlags *flags.GlobalFlags, defaults *pdefaults.Defaults) *cobra.Command
NewVirtualClusterCmd creates a new command
Types ¶
type ClusterCmd ¶
type ClusterCmd struct { *flags.GlobalFlags Print bool DisableDirectClusterEndpoint bool // contains filtered or unexported fields }
ClusterCmd holds the cmd flags
type ManagementCmd ¶
type ManagementCmd struct { *flags.GlobalFlags Print bool // contains filtered or unexported fields }
ManagementCmd holds the cmd flags
type SpaceCmd ¶
type SpaceCmd struct { *flags.GlobalFlags Cluster string Project string Print bool SkipWait bool DisableDirectClusterEndpoint bool // contains filtered or unexported fields }
SpaceCmd holds the cmd flags
Click to show internal directories.
Click to hide internal directories.