Documentation ¶
Index ¶
- Variables
- func ResourcePolicyCreate(ctx context.Context, d *schema.ResourceData, m interface{}, rn string) (diags diag.Diagnostics)
- func ResourcePolicyDelete(_ context.Context, d *schema.ResourceData, m interface{}, rn string) (diags diag.Diagnostics)
- func ResourcePolicyInPlaceUpdate(ctx context.Context, d *schema.ResourceData, m interface{}, rn string) (diags diag.Diagnostics)
- func ResourcePolicyRead(_ context.Context, d *schema.ResourceData, m interface{}, rn string) (diags diag.Diagnostics)
- func RetrievePolicyUIDMetaAndSpecFromServer(config authctx.TanzuContext, scopedFullnameData *scope.ScopedFullname, ...) (string, *objectmetamodel.VmwareTanzuCoreV1alpha1ObjectMeta, ...)
- type Operation
- type OperationConfig
- type OperationOption
- type ResourceOperationType
Constants ¶
This section is empty.
Variables ¶
View Source
var ScopeMap = map[string][]string{ policykindcustom.ResourceName: {scope.ClusterKey, scope.ClusterGroupKey, scope.OrganizationKey}, policykindimage.ResourceName: {scope.WorkspaceKey, scope.OrganizationKey}, policykindquota.ResourceName: {scope.ClusterKey, scope.ClusterGroupKey, scope.OrganizationKey}, policykindsecurity.ResourceName: {scope.ClusterKey, scope.ClusterGroupKey, scope.OrganizationKey}, policykindnetwork.ResourceName: {scope.WorkspaceKey, scope.OrganizationKey}, policykindmutation.ResourceName: {scope.ClusterKey, scope.ClusterGroupKey, scope.OrganizationKey}, }
Functions ¶
func ResourcePolicyCreate ¶
func ResourcePolicyCreate(ctx context.Context, d *schema.ResourceData, m interface{}, rn string) (diags diag.Diagnostics)
func ResourcePolicyDelete ¶
func ResourcePolicyDelete(_ context.Context, d *schema.ResourceData, m interface{}, rn string) (diags diag.Diagnostics)
func ResourcePolicyInPlaceUpdate ¶
func ResourcePolicyInPlaceUpdate(ctx context.Context, d *schema.ResourceData, m interface{}, rn string) (diags diag.Diagnostics)
func ResourcePolicyRead ¶
func ResourcePolicyRead(_ context.Context, d *schema.ResourceData, m interface{}, rn string) (diags diag.Diagnostics)
func RetrievePolicyUIDMetaAndSpecFromServer ¶
func RetrievePolicyUIDMetaAndSpecFromServer(config authctx.TanzuContext, scopedFullnameData *scope.ScopedFullname, d *schema.ResourceData, policyName, rn string) (string, *objectmetamodel.VmwareTanzuCoreV1alpha1ObjectMeta, *policymodel.VmwareTanzuManageV1alpha1CommonPolicySpec, error)
nolint: gocognit
Types ¶
type OperationConfig ¶
type OperationOption ¶
type OperationOption func(*OperationConfig)
func WithOperationType ¶
func WithOperationType(t Operation) OperationOption
func WithResourceName ¶
func WithResourceName(rn string) OperationOption
type ResourceOperationType ¶
type ResourceOperationType func(ctx context.Context, d *schema.ResourceData, m interface{}) (diags diag.Diagnostics)
func ResourceOperation ¶
func ResourceOperation(opts ...OperationOption) ResourceOperationType
Click to show internal directories.
Click to hide internal directories.