iam_role

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 {
	Description string
	Etag        string
	Permissions []string
	Stage       string
	Title       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 Config

type Config struct {
}

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 IamRole

type IamRole struct {
	Identifier identifier.IamRoleIdentifier
	Config     Config
	Attrs      Attrs
}

func (IamRole) ToResourceValue

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

type IamRoleCreator

type IamRoleCreator interface {
	CreateIamRole(context.Context, identifier.IamRoleIdentifier, Config) (IamRole, error)
}

type IamRoleDeleter

type IamRoleDeleter interface {
	DeleteIamRole(context.Context, identifier.IamRoleIdentifier) error
}

type IamRoleGetter

type IamRoleGetter interface {
	GetIamRole(context.Context, identifier.IamRoleIdentifier) (IamRole, error)
}

type IamRoleHandler

type IamRoleHandler struct {
	IamRoleGetter  IamRoleGetter
	IamRoleCreator IamRoleCreator
	IamRoleUpdator IamRoleUpdator
	IamRoleDeleter IamRoleDeleter

	CloseFunc func() error
}

func (*IamRoleHandler) Close

func (h *IamRoleHandler) Close() error

func (*IamRoleHandler) CreateResource

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

func (*IamRoleHandler) DeleteResource

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

func (*IamRoleHandler) GetResource

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

func (*IamRoleHandler) UpdateResource

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

type IamRoleUpdator

type IamRoleUpdator interface {
	UpdateIamRole(context.Context, identifier.IamRoleIdentifier, Config, []sdk.UpdateMaskField) (IamRole, error)
}

Jump to

Keyboard shortcuts

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