noop

package
v0.10.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const ResourceTypeNoOp = "noop"

Variables

View Source
var (
	ErrInvalidProviderType         = errors.New("provider type not equal to noop")
	ErrInvalidAllowedAccountTypes  = errors.New("allowed account types for noop provider is only \"user\"")
	ErrInvalidCredentials          = errors.New("credentials should be empty")
	ErrInvalidResourceConfigLength = errors.New("resource config length should be 1")
	ErrInvalidResourceConfigType   = errors.New("resource config type should be \"noop\"")
	ErrInvalidRolePermissions      = errors.New("permissions should be empty")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	ProviderConfig *domain.ProviderConfig
}

type Provider

type Provider struct {
	provider.UnimplementedClient
	provider.PermissionManager
	// contains filtered or unexported fields
}

func NewProvider

func NewProvider(typeName string, logger log.Logger) *Provider

func (*Provider) CreateConfig

func (p *Provider) CreateConfig(cfg *domain.ProviderConfig) error

func (*Provider) GetAccountTypes

func (p *Provider) GetAccountTypes() []string

func (*Provider) GetResources

func (p *Provider) GetResources(ctx context.Context, pc *domain.ProviderConfig) ([]*domain.Resource, error)

func (*Provider) GetRoles

func (p *Provider) GetRoles(pc *domain.ProviderConfig, resourceType string) ([]*domain.Role, error)

func (*Provider) GetType

func (p *Provider) GetType() string

func (*Provider) GrantAccess

func (*Provider) RevokeAccess

Jump to

Keyboard shortcuts

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