Documentation ¶
Index ¶
- Variables
- func GetAbsoluteWorkspaceURL(host string, absoluteWorkspace string) (string, error)
- func GetAddonName(workspaceId string) string
- func GetKCPContext(host string) (string, error)
- func GetParentWorkspaceId(workspaceId string) string
- func GetSyncerPrefix() string
- func GetWorkspaceAnnotationName() string
- func GetWorkspaceIdFromObject(obj interface{}) string
- func GetWorkspaceName(workspaceId string) string
- func GetWorkspacePhase(workspace runtime.Object) string
- func GetWorkspaceType(workspace runtime.Object) string
- func GetWorkspaceURL(workspace runtime.Object) string
- func IsAbsoluteWorkspace(host string, workspace string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ClusterWorkspaceGVR = schema.GroupVersionResource{
Group: "tenancy.kcp.dev",
Version: "v1alpha1",
Resource: "clusterworkspaces",
}
Functions ¶
func GetAbsoluteWorkspaceURL ¶
func GetAddonName ¶
func GetKCPContext ¶
func GetParentWorkspaceId ¶
func GetSyncerPrefix ¶
func GetSyncerPrefix() string
func GetWorkspaceAnnotationName ¶
func GetWorkspaceAnnotationName() string
func GetWorkspaceIdFromObject ¶
func GetWorkspaceIdFromObject(obj interface{}) string
func GetWorkspaceName ¶
func GetWorkspacePhase ¶
func GetWorkspaceType ¶
func GetWorkspaceURL ¶
func IsAbsoluteWorkspace ¶
This implementation assumes the absolute workspace is the kcp config current context or a child of it. Another option would just be to check for "root:" prefix. This is a temporary for hack for kcp dev workload support.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.