scopes

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2022 License: MPL-2.0 Imports: 32 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,
	}
)

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.UnimplementedScopeServiceServer
	// contains filtered or unexported fields
}

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

func NewService

func NewService(repo common.IamRepoFactory) (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) GetScope

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

GetScopes implements the interface pbs.ScopeServiceServer.

func (Service) ListScopes

ListScopes 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