policyoperations

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2023 License: MPL-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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)

Types

type Operation

type Operation string
const (
	Create Operation = "CREATE"
	Read   Operation = "READ"
	Update Operation = "UPDATE"
	Delete Operation = "DELETE"
)

type OperationConfig

type OperationConfig struct {
	ResourceName  string
	OperationType Operation
}

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

Jump to

Keyboard shortcuts

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