orgpolicy

package
v1.134.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Expr_FromProto

func Expr_FromProto(mapCtx *direct.MapContext, in *expr.Expr) *krm.Expr

func Expr_ToProto

func Expr_ToProto(mapCtx *direct.MapContext, in *krm.Expr) *expr.Expr

func NewCustomConstraintModel

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

func NewPolicyModel

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

func OrgPolicyCustomConstraintSpec_FromProto

func OrgPolicyCustomConstraintSpec_FromProto(mapCtx *direct.MapContext, in *pb.CustomConstraint) *krm.OrgPolicyCustomConstraintSpec

func OrgPolicyCustomConstraintSpec_ToProto

func OrgPolicyCustomConstraintSpec_ToProto(mapCtx *direct.MapContext, in *krm.OrgPolicyCustomConstraintSpec) *pb.CustomConstraint

func OrgPolicyPolicyObservedState_FromProto

func OrgPolicyPolicyObservedState_FromProto(mapCtx *direct.MapContext, in *pb.Policy) *krm.OrgPolicyPolicyObservedState

func OrgPolicyPolicyObservedState_ToProto

func OrgPolicyPolicyObservedState_ToProto(mapCtx *direct.MapContext, in *krm.OrgPolicyPolicyObservedState) *pb.Policy

func OrgPolicyPolicySpec_FromProto

func OrgPolicyPolicySpec_FromProto(mapCtx *direct.MapContext, in *pb.Policy) *krm.OrgPolicyPolicySpec

func OrgPolicyPolicySpec_ToProto

func OrgPolicyPolicySpec_ToProto(mapCtx *direct.MapContext, in *krm.OrgPolicyPolicySpec) *pb.Policy

func PolicySpecObservedState_FromProto

func PolicySpecObservedState_FromProto(mapCtx *direct.MapContext, in *pb.PolicySpec) *krm.PolicySpecObservedState

func PolicySpecObservedState_ToProto

func PolicySpecObservedState_ToProto(mapCtx *direct.MapContext, in *krm.PolicySpecObservedState) *pb.PolicySpec

func PolicySpec_FromProto

func PolicySpec_FromProto(mapCtx *direct.MapContext, in *pb.PolicySpec) *krm.PolicySpec

func PolicySpec_PolicyRule_AllowAll_ToProto

func PolicySpec_PolicyRule_AllowAll_ToProto(mapCtx *direct.MapContext, in *bool) *pb.PolicySpec_PolicyRule_AllowAll

func PolicySpec_PolicyRule_DenyAll_ToProto

func PolicySpec_PolicyRule_DenyAll_ToProto(mapCtx *direct.MapContext, in *bool) *pb.PolicySpec_PolicyRule_DenyAll

func PolicySpec_PolicyRule_Enforce_ToProto

func PolicySpec_PolicyRule_Enforce_ToProto(mapCtx *direct.MapContext, in *bool) *pb.PolicySpec_PolicyRule_Enforce

func PolicySpec_PolicyRule_FromProto

func PolicySpec_PolicyRule_FromProto(mapCtx *direct.MapContext, in *pb.PolicySpec_PolicyRule) *krm.PolicySpec_PolicyRule

func PolicySpec_PolicyRule_ToProto

func PolicySpec_PolicyRule_ToProto(mapCtx *direct.MapContext, in *krm.PolicySpec_PolicyRule) *pb.PolicySpec_PolicyRule

func PolicySpec_ToProto

func PolicySpec_ToProto(mapCtx *direct.MapContext, in *krm.PolicySpec) *pb.PolicySpec

Types

type CustomConstraintAdapter

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

func (*CustomConstraintAdapter) Create

Create creates the resource in GCP based on `spec` and update the Config Connector object `status` based on the GCP response.

func (*CustomConstraintAdapter) Delete

Delete the resource from GCP service when the corresponding Config Connector resource is deleted.

func (*CustomConstraintAdapter) Export

Export maps the GCP object to a Config Connector resource `spec`.

func (*CustomConstraintAdapter) Find

Find retrieves the GCP resource. Return true means the object is found. This triggers Adapter `Update` call. Return false means the object is not found. This triggers Adapter `Create` call. Return a non-nil error requeues the requests.

func (*CustomConstraintAdapter) Update

Update updates the resource in GCP based on `spec` and update the Config Connector object `status` based on the GCP response.

type PolicyAdapter

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

func (*PolicyAdapter) Create

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

Create creates the resource in GCP based on `spec` and update the Config Connector object `status` based on the GCP response.

func (*PolicyAdapter) Delete

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

Delete the resource from GCP service when the corresponding Config Connector resource is deleted.

func (*PolicyAdapter) Export

Export maps the GCP object to a Config Connector resource `spec`.

func (*PolicyAdapter) Find

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

Find retrieves the GCP resource. Return true means the object is found. This triggers Adapter `Update` call. Return false means the object is not found. This triggers Adapter `Create` call. Return a non-nil error requeues the requests.

func (*PolicyAdapter) Update

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

Update updates the resource in GCP based on `spec` and update the Config Connector object `status` based on the GCP response.

Jump to

Keyboard shortcuts

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