scopes

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2023 License: MPL-2.0 Imports: 37 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// IdActions contains the set of actions that can be performed on
	// individual resources
	IdActions = action.ActionSet{
		action.NoOp,
		action.Read,
		action.Update,
		action.Delete,
	}

	// CollectionActions contains the set of actions that can be performed on
	// this collection
	CollectionActions = action.ActionSet{
		action.Create,
		action.List,
		action.ListScopeKeys,
		action.RotateScopeKeys,
		action.ListScopeKeyVersionDestructionJobs,
		action.DestroyScopeKeyVersion,
	}
)

Functions

func SortScopes

func SortScopes(scps []*pb.Scope)

func ToProto

func ToProto(ctx context.Context, in *iam.Scope, opt ...handlers.Option) (*pb.Scope, error)

Types

type Service

type Service struct {
	pbs.UnsafeScopeServiceServer
	// contains filtered or unexported fields
}

Service handles requests as described by the pbs.ScopeServiceServer interface.

func NewService

func NewService(ctx context.Context, repo common.IamRepoFactory, kmsRepo *kms.Kms) (Service, error)

NewService returns a project service which handles project related requests to boundary.

func (Service) CreateScope

CreateScope implements the interface pbs.ScopeServiceServer.

func (Service) DeleteScope

DeleteScope implements the interface pbs.ScopeServiceServer.

func (Service) DestroyKeyVersion added in v0.11.1

DestroyKeyVersion implements the interface pbs.ScopeServiceServer.

func (Service) GetScope

func (s Service) GetScope(ctx context.Context, req *pbs.GetScopeRequest) (*pbs.GetScopeResponse, error)

GetScopes implements the interface pbs.ScopeServiceServer.

func (Service) ListKeyVersionDestructionJobs added in v0.11.1

ListKeyVersionDestructionJobs implements the interface pbs.ScopeServiceServer.

func (Service) ListKeys added in v0.11.1

func (s Service) ListKeys(ctx context.Context, req *pbs.ListKeysRequest) (*pbs.ListKeysResponse, error)

ListKeys implements the interface pbs.ScopeServiceServer.

func (Service) ListScopes

ListScopes implements the interface pbs.ScopeServiceServer.

func (Service) RotateKeys added in v0.11.1

RotateKeys implements the interface pbs.ScopeServiceServer.

func (Service) UpdateScope

UpdateScope implements the interface pbs.ScopeServiceServer.

Jump to

Keyboard shortcuts

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