Documentation ¶
Index ¶
- func CanAccessInstance(managementClient kube.Interface, namespace, name string, resource string) (bool, error)
- func CanAccessProjectSecret(managementClient kube.Interface, namespace, name string) (bool, error)
- func CanAccessSpaceInstance(managementClient kube.Interface, namespace, name string) (bool, error)
- func CanAccessVirtualClusterInstance(managementClient kube.Interface, namespace, name string) (bool, error)
- func GetCurrentUser(ctx context.Context, managementClient kube.Interface) (*managementv1.UserInfo, *clusterv1.EntityInfo, error)
- func SelectCluster(baseClient client.Client, log log.Logger) (string, error)
- func SelectProjectCluster(baseClient client.Client, project *managementv1.Project, log log.Logger) (string, error)
- func SelectProjectOrCluster(baseClient client.Client, clusterName, projectName string, ...) (cluster string, project string, err error)
- func SelectSpaceAndClusterName(baseClient client.Client, spaceName, clusterName string, log log.Logger) (string, string, error)
- func SelectSpaceInstanceOrSpace(baseClient client.Client, spaceName, projectName, clusterName string, ...) (string, string, string, error)
- func SelectSpaceTemplate(baseClient client.Client, projectName, templateName string, log log.Logger) (*managementv1.SpaceTemplate, error)
- func SelectUserOrTeam(baseClient client.Client, clusterName string, log log.Logger) (*clusterv1.EntityInfo, *clusterv1.EntityInfo, error)
- func SelectVirtualClusterAndSpaceAndClusterName(baseClient client.Client, virtualClusterName, spaceName, clusterName string, ...) (string, string, string, error)
- func SelectVirtualClusterInstanceOrVirtualCluster(baseClient client.Client, ...) (string, string, string, string, error)
- func SelectVirtualClusterTemplate(baseClient client.Client, projectName, templateName string, log log.Logger) (*managementv1.VirtualClusterTemplate, error)
- type ClusterSpace
- type ClusterUserOrTeam
- type ClusterVirtualCluster
- type ProjectProjectSecret
- type ProjectSpace
- type ProjectVirtualCluster
- type SpaceInstanceProject
- type VirtualClusterInstanceProject
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CanAccessInstance ¶
func CanAccessProjectSecret ¶
func CanAccessSpaceInstance ¶
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(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(baseClient client.Client, spaceName, clusterName string, log log.Logger) (string, string, error)
SelectSpaceAndClusterName selects a space and cluster name
func SelectSpaceTemplate ¶
func SelectSpaceTemplate(baseClient client.Client, projectName, templateName string, log log.Logger) (*managementv1.SpaceTemplate, error)
func SelectUserOrTeam ¶
func SelectUserOrTeam(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(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 }
func SelectClusterUserOrTeam ¶
type ClusterVirtualCluster ¶
type ClusterVirtualCluster struct { clusterv1.VirtualCluster Cluster string }
func GetVirtualClusters ¶
GetVirtualClusters returns all virtual clusters the user has access to
type ProjectProjectSecret ¶
type ProjectProjectSecret struct { ProjectSecret managementv1.ProjectSecret Project string }
func GetProjectSecrets ¶
type ProjectSpace ¶
type ProjectSpace struct { SpaceInstance managementv1.SpaceInstance Project string }
func GetSpaceInstances ¶
func GetSpaceInstances(baseClient client.Client) ([]ProjectSpace, error)
type ProjectVirtualCluster ¶
type ProjectVirtualCluster struct { VirtualClusterInstance managementv1.VirtualClusterInstance Project string }
func GetVirtualClusterInstances ¶
func GetVirtualClusterInstances(baseClient client.Client) ([]ProjectVirtualCluster, error)
type SpaceInstanceProject ¶
type SpaceInstanceProject struct { Space *managementv1.SpaceInstance Project *managementv1.Project }
type VirtualClusterInstanceProject ¶
type VirtualClusterInstanceProject struct { VirtualCluster *managementv1.VirtualClusterInstance Project *managementv1.Project }
Click to show internal directories.
Click to hide internal directories.