Documentation ¶
Index ¶
- Constants
- Variables
- type Config
- type Provider
- func (p *Provider) CreateConfig(cfg *domain.ProviderConfig) error
- func (p *Provider) GetAccountTypes() []string
- func (p *Provider) GetResources(pc *domain.ProviderConfig) ([]*domain.Resource, error)
- func (p *Provider) GetRoles(pc *domain.ProviderConfig, resourceType string) ([]*domain.Role, error)
- func (p *Provider) GetType() string
- func (p *Provider) GrantAccess(*domain.ProviderConfig, domain.Grant) error
- func (p *Provider) RevokeAccess(*domain.ProviderConfig, domain.Grant) error
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 (*Provider) CreateConfig ¶
func (p *Provider) CreateConfig(cfg *domain.ProviderConfig) error
func (*Provider) GetAccountTypes ¶
func (*Provider) GetResources ¶
func (*Provider) GrantAccess ¶
func (*Provider) RevokeAccess ¶
Click to show internal directories.
Click to hide internal directories.