workstations

package
v1.125.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewModel

func NewModel(ctx context.Context, config *config.ControllerConfig) (directbase.Model, error)

func NormalizeWorkstationCluster

func NormalizeWorkstationCluster(ctx context.Context, kube client.Reader, obj *krm.WorkstationCluster) error

func WorkstationClusterAllowedProjects_FromProto

func WorkstationClusterAllowedProjects_FromProto(mapCtx *direct.MapContext, in []string) []refs.ProjectRef

func WorkstationClusterAllowedProjects_ToProto

func WorkstationClusterAllowedProjects_ToProto(mapCtx *direct.MapContext, in []refs.ProjectRef) []string

func WorkstationClusterAnnotations_FromProto

func WorkstationClusterAnnotations_FromProto(mapCtx *direct.MapContext, in map[string]string) []krm.WorkstationClusterAnnotation

func WorkstationClusterAnnotations_ToProto

func WorkstationClusterAnnotations_ToProto(mapCtx *direct.MapContext, in []krm.WorkstationClusterAnnotation) map[string]string

func WorkstationClusterClusterHostname_FromProto

func WorkstationClusterClusterHostname_FromProto(mapCtx *direct.MapContext, in *pb.WorkstationCluster_PrivateClusterConfig) *string

func WorkstationClusterGCPConditions_FromProto

func WorkstationClusterGCPConditions_FromProto(mapCtx *direct.MapContext, in []*status.Status) []krm.WorkstationClusterGCPCondition

func WorkstationClusterGCPConditions_ToProto added in v1.125.0

func WorkstationClusterGCPConditions_ToProto(mapCtx *direct.MapContext, in []krm.WorkstationClusterGCPCondition) []*status.Status

func WorkstationClusterLabels_FromProto

func WorkstationClusterLabels_FromProto(mapCtx *direct.MapContext, in map[string]string) []krm.WorkstationClusterLabel

func WorkstationClusterLabels_ToProto

func WorkstationClusterLabels_ToProto(mapCtx *direct.MapContext, in []krm.WorkstationClusterLabel) map[string]string

func WorkstationClusterObservedState_FromProto

func WorkstationClusterObservedState_FromProto(mapCtx *direct.MapContext, in *pb.WorkstationCluster) *krm.WorkstationClusterObservedState

func WorkstationClusterObservedState_ToProto added in v1.125.0

func WorkstationClusterObservedState_ToProto(mapCtx *direct.MapContext, in *krm.WorkstationClusterObservedState) *pb.WorkstationCluster

func WorkstationClusterServiceAttachmentUri_FromProto

func WorkstationClusterServiceAttachmentUri_FromProto(mapCtx *direct.MapContext, in *pb.WorkstationCluster_PrivateClusterConfig) *string

func WorkstationClusterSpec_FromProto

func WorkstationClusterSpec_FromProto(mapCtx *direct.MapContext, in *pb.WorkstationCluster) *krm.WorkstationClusterSpec

func WorkstationClusterSpec_ToProto

func WorkstationClusterSpec_ToProto(mapCtx *direct.MapContext, in *krm.WorkstationClusterSpec) *pb.WorkstationCluster

Types

type Adapter

type Adapter struct {
	// contains filtered or unexported fields
}

func (*Adapter) Create

func (a *Adapter) Create(ctx context.Context, createOp *directbase.CreateOperation) error

func (*Adapter) Delete

func (a *Adapter) Delete(ctx context.Context, deleteOp *directbase.DeleteOperation) (bool, error)

func (*Adapter) Export

func (*Adapter) Find

func (a *Adapter) Find(ctx context.Context) (bool, error)

func (*Adapter) Update

func (a *Adapter) Update(ctx context.Context, updateOp *directbase.UpdateOperation) error

type WorkstationClusterIdentity

type WorkstationClusterIdentity struct {
	Parent             parent
	WorkstationCluster string
}

The Identifier for ConfigConnector to track the WorkstationCluster resource from the GCP service.

func BuildID

func BuildID(project, location, resourceID string) *WorkstationClusterIdentity

BuildID builds the ID for ConfigConnector to track the WorkstationCluster resource from the GCP service.

func (*WorkstationClusterIdentity) AsExternalRef

func (c *WorkstationClusterIdentity) AsExternalRef() *string

AsExternalRef builds a externalRef from a WorkstationCluster

func (*WorkstationClusterIdentity) FullyQualifiedName

func (c *WorkstationClusterIdentity) FullyQualifiedName() string

FullyQualifiedName returns both parent and resource ID in the full url format.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL