Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsPlatformMeshAccountPath ¶
IsPlatformMeshAccountPath returns whether a value is a platform-mesh account path, i.e. a canonical KCP workspace path child to the platform-mesh account workspace tree "root:orgs".
Types ¶
type AccountPath ¶
type AccountPath struct {
logicalcluster.Path
}
AccountPath represents a logicalcluster.Path that is assumed to be the path of a platform-mesh Account, i.e. conforms to the conditions of the IsPlatformMeshAccountPath function.
func NewAccountPath ¶
func NewAccountPath(value string) (AccountPath, error)
func NewAccountPathFromLogicalCluster ¶
func NewAccountPathFromLogicalCluster(lc *kcpcorev1alpha1.LogicalCluster) (AccountPath, error)
func (AccountPath) IsOrg ¶
func (a AccountPath) IsOrg() bool
IsOrg returns true if the AccountPath is an organisation.
func (AccountPath) Org ¶
func (a AccountPath) Org() AccountPath
Org returns the AccountPath's parent organisation.
Click to show internal directories.
Click to hide internal directories.