Documentation ¶
Index ¶
- func AutokeyConfig_FromProto(mapCtx *direct.MapContext, in *pb.AutokeyConfig) *krm.AutokeyConfig
- func AutokeyConfig_ToProto(mapCtx *direct.MapContext, in *krm.AutokeyConfig) *pb.AutokeyConfig
- func KMSAutokeyConfigObservedState_FromProto(mapCtx *direct.MapContext, in *pb.AutokeyConfig) *krm.KMSAutokeyConfigObservedState
- func KMSAutokeyConfigSpec_FromProto(mapCtx *direct.MapContext, in *pb.AutokeyConfig) *krm.KMSAutokeyConfigSpec
- func KMSAutokeyConfigStatusObservedState_FromProto(mapCtx *direct.MapContext, updated *kmspb.AutokeyConfig) *krm.KMSAutokeyConfigObservedState
- func KMSAutokeyConfig_FromFields(mapCtx *direct.MapContext, id *krm.KMSAutokeyConfigRef, ...) *pb.AutokeyConfig
- func NewModel(ctx context.Context, config *config.ControllerConfig) (directbase.Model, error)
- type Adapter
- func (a *Adapter) Create(ctx context.Context, createOp *directbase.CreateOperation) error
- func (a *Adapter) Delete(ctx context.Context, deleteOp *directbase.DeleteOperation) (bool, error)
- func (a *Adapter) Export(ctx context.Context) (*unstructured.Unstructured, error)
- func (a *Adapter) Find(ctx context.Context) (bool, error)
- func (a *Adapter) Update(ctx context.Context, updateOp *directbase.UpdateOperation) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AutokeyConfig_FromProto ¶
func AutokeyConfig_FromProto(mapCtx *direct.MapContext, in *pb.AutokeyConfig) *krm.AutokeyConfig
func AutokeyConfig_ToProto ¶
func AutokeyConfig_ToProto(mapCtx *direct.MapContext, in *krm.AutokeyConfig) *pb.AutokeyConfig
func KMSAutokeyConfigObservedState_FromProto ¶
func KMSAutokeyConfigObservedState_FromProto(mapCtx *direct.MapContext, in *pb.AutokeyConfig) *krm.KMSAutokeyConfigObservedState
func KMSAutokeyConfigSpec_FromProto ¶
func KMSAutokeyConfigSpec_FromProto(mapCtx *direct.MapContext, in *pb.AutokeyConfig) *krm.KMSAutokeyConfigSpec
func KMSAutokeyConfigStatusObservedState_FromProto ¶
func KMSAutokeyConfigStatusObservedState_FromProto(mapCtx *direct.MapContext, updated *kmspb.AutokeyConfig) *krm.KMSAutokeyConfigObservedState
func KMSAutokeyConfig_FromFields ¶
func KMSAutokeyConfig_FromFields(mapCtx *direct.MapContext, id *krm.KMSAutokeyConfigRef, keyProject *refs.Project) *pb.AutokeyConfig
func NewModel ¶
func NewModel(ctx context.Context, config *config.ControllerConfig) (directbase.Model, error)
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)
Delete implements the Adapter interface. Note: Delete operation is not supported for GCP AutokeyConfig resource. However in KCC, the user has full flexibility to delete the KCC AutokeyConfig resource. To make this KCC operation effective, as part of KCC AutokeyConfig deletion we will update the AutokeyConfig resource in GCP with empty key_project which will prevent further use of AutokeyConfig. Because of the above decision we will update the observedstate for AutokeyConfig with state = UNINITIALIZED
func (*Adapter) Export ¶
func (a *Adapter) Export(ctx context.Context) (*unstructured.Unstructured, error)
func (*Adapter) Find ¶
Find return true if AutokeyConfig exist and user has permission to read it. Else it will return false and error.
func (*Adapter) Update ¶
func (a *Adapter) Update(ctx context.Context, updateOp *directbase.UpdateOperation) error
Click to show internal directories.
Click to hide internal directories.