Documentation ¶
Index ¶
- func CanAccessInstance(ctx context.Context, managementClient kube.Interface, namespace, name string, ...) (bool, error)
- func CanAccessProjectSecret(ctx context.Context, managementClient kube.Interface, namespace, name string) (bool, error)
- func GetCurrentUser(ctx context.Context, managementClient kube.Interface) (*managementv1.UserInfo, *clusterv1.EntityInfo, error)
- func SelectCluster(ctx context.Context, baseClient client.Client, log log.Logger) (string, error)
- func SelectProjectCluster(ctx context.Context, baseClient client.Client, project *managementv1.Project, ...) (string, error)
- func SelectProjectOrCluster(ctx context.Context, baseClient client.Client, clusterName, projectName string, ...) (cluster string, project string, err error)
- func SelectSpaceAndClusterName(ctx context.Context, baseClient client.Client, spaceName, clusterName string, ...) (string, string, error)
- func SelectSpaceInstanceOrSpace(ctx context.Context, baseClient client.Client, ...) (string, string, string, error)
- func SelectSpaceTemplate(ctx context.Context, baseClient client.Client, ...) (*managementv1.SpaceTemplate, error)
- func SelectUserOrTeam(ctx context.Context, baseClient client.Client, clusterName string, ...) (*clusterv1.EntityInfo, *clusterv1.EntityInfo, error)
- func SelectVirtualClusterAndSpaceAndClusterName(ctx context.Context, baseClient client.Client, ...) (string, string, string, error)
- func SelectVirtualClusterInstanceOrVirtualCluster(ctx context.Context, baseClient client.Client, ...) (string, string, string, string, error)
- func SelectVirtualClusterTemplate(ctx context.Context, baseClient client.Client, ...) (*managementv1.VirtualClusterTemplate, error)
- type ClusterSpace
- type ClusterUserOrTeam
- type ClusterVirtualCluster
- type ProjectProjectSecret
- type SpaceInstanceProject
- type VirtualClusterInstanceProject
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CanAccessInstance ¶
func CanAccessProjectSecret ¶
func GetCurrentUser ¶
func GetCurrentUser(ctx context.Context, managementClient kube.Interface) (*managementv1.UserInfo, *clusterv1.EntityInfo, error)
func SelectCluster ¶
SelectCluster lets the user select a cluster
func SelectProjectCluster ¶
func SelectProjectCluster(ctx context.Context, baseClient client.Client, project *managementv1.Project, log log.Logger) (string, error)
SelectProjectCluster lets the user select a cluster from the project's allowed clusters
func SelectProjectOrCluster ¶
func SelectSpaceAndClusterName ¶
func SelectSpaceAndClusterName(ctx context.Context, baseClient client.Client, spaceName, clusterName string, log log.Logger) (string, string, error)
SelectSpaceAndClusterName selects a space and cluster name
func SelectSpaceTemplate ¶
func SelectSpaceTemplate(ctx context.Context, baseClient client.Client, projectName, templateName string, log log.Logger) (*managementv1.SpaceTemplate, error)
func SelectUserOrTeam ¶
func SelectUserOrTeam(ctx context.Context, baseClient client.Client, clusterName string, log log.Logger) (*clusterv1.EntityInfo, *clusterv1.EntityInfo, error)
SelectUserOrTeam lets the user select an user or team in a cluster
func SelectVirtualClusterTemplate ¶
func SelectVirtualClusterTemplate(ctx context.Context, baseClient client.Client, projectName, templateName string, log log.Logger) (*managementv1.VirtualClusterTemplate, error)
Types ¶
type ClusterSpace ¶
type ClusterUserOrTeam ¶
type ClusterUserOrTeam struct { Team bool ClusterMember managementv1.ClusterMember }
type ClusterVirtualCluster ¶
type ClusterVirtualCluster struct { clusterv1.VirtualCluster Cluster string }
func GetVirtualClusters ¶
func GetVirtualClusters(ctx context.Context, baseClient client.Client, log log.Logger) ([]ClusterVirtualCluster, error)
GetVirtualClusters returns all virtual clusters the user has access to
type ProjectProjectSecret ¶
type ProjectProjectSecret struct { ProjectSecret managementv1.ProjectSecret Project string }
func GetProjectSecrets ¶
type SpaceInstanceProject ¶
type SpaceInstanceProject struct { SpaceInstance *managementv1.SpaceInstance Project *managementv1.Project }
func GetSpaceInstances ¶
type VirtualClusterInstanceProject ¶
type VirtualClusterInstanceProject struct { VirtualCluster *managementv1.VirtualClusterInstance Project *managementv1.Project }
Click to show internal directories.
Click to hide internal directories.