iam_policy

package
v0.0.1-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attrs

type Attrs struct {
	Etag string
}

func ParseAttrs

func ParseAttrs(v any) (Attrs, error)

func ParseAttrsList

func ParseAttrsList(v any) ([]Attrs, error)

func (Attrs) ToValue

func (x Attrs) ToValue() any

type Binding

type Binding struct {
	Members []sdk.ResourceIdentifier
	Role    sdk.ResourceIdentifier
}

func ParseBinding

func ParseBinding(v any) (Binding, error)

func ParseBindingList

func ParseBindingList(v any) ([]Binding, error)

func (Binding) ToValue

func (x Binding) ToValue() any

type Config

type Config struct {
	Bindings []Binding
}

func ParseConfig

func ParseConfig(v any) (Config, error)

func ParseConfigList

func ParseConfigList(v any) ([]Config, error)

func (Config) ToValue

func (x Config) ToValue() any

type IamPolicy

type IamPolicy struct {
	Identifier identifier.IamPolicyIdentifier
	Config     Config
	Attrs      Attrs
}

func (IamPolicy) ToResourceValue

func (x IamPolicy) ToResourceValue() (sdk.Resource, error)

type IamPolicyCreator

type IamPolicyCreator interface {
	CreateIamPolicy(context.Context, identifier.IamPolicyIdentifier, Config) (IamPolicy, error)
}

type IamPolicyDeleter

type IamPolicyDeleter interface {
	DeleteIamPolicy(context.Context, identifier.IamPolicyIdentifier) error
}

type IamPolicyGetter

type IamPolicyGetter interface {
	GetIamPolicy(context.Context, identifier.IamPolicyIdentifier) (IamPolicy, error)
}

type IamPolicyHandler

type IamPolicyHandler struct {
	IamPolicyGetter  IamPolicyGetter
	IamPolicyCreator IamPolicyCreator
	IamPolicyUpdator IamPolicyUpdator
	IamPolicyDeleter IamPolicyDeleter

	CloseFunc func() error
}

func (*IamPolicyHandler) Close

func (h *IamPolicyHandler) Close() error

func (*IamPolicyHandler) CreateResource

func (h *IamPolicyHandler) CreateResource(ctx context.Context, id sdk.Identifier, config any) (sdk.Resource, error)

func (*IamPolicyHandler) DeleteResource

func (h *IamPolicyHandler) DeleteResource(ctx context.Context, id sdk.Identifier) error

func (*IamPolicyHandler) GetResource

func (h *IamPolicyHandler) GetResource(ctx context.Context, id sdk.Identifier) (sdk.Resource, error)

func (*IamPolicyHandler) UpdateResource

func (h *IamPolicyHandler) UpdateResource(ctx context.Context, id sdk.Identifier, config any, mask []sdk.UpdateMaskField) (sdk.Resource, error)

type IamPolicyUpdator

type IamPolicyUpdator interface {
	UpdateIamPolicy(context.Context, identifier.IamPolicyIdentifier, Config, []sdk.UpdateMaskField) (IamPolicy, error)
}

Jump to

Keyboard shortcuts

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