targets

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2021 License: MPL-2.0 Imports: 34 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.Read,
		action.Update,
		action.Delete,
		action.AddHostSets,
		action.SetHostSets,
		action.RemoveHostSets,
		action.AuthorizeSession,
	}

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

Functions

This section is empty.

Types

type Service

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

Service handles request as described by the pbs.TargetServiceServer interface.

func NewService

func NewService(
	kmsCache *kms.Kms,
	repoFn common.TargetRepoFactory,
	iamRepoFn common.IamRepoFactory,
	serversRepoFn common.ServersRepoFactory,
	sessionRepoFn common.SessionRepoFactory,
	staticHostRepoFn common.StaticRepoFactory) (Service, error)

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

func (Service) AddTargetHostSets

AddTargetHostSets implements the interface pbs.TargetServiceServer.

func (Service) AuthorizeSession

func (Service) CreateTarget

CreateTarget implements the interface pbs.TargetServiceServer.

func (Service) DeleteTarget

DeleteTarget implements the interface pbs.TargetServiceServer.

func (Service) GetTarget

GetTargets implements the interface pbs.TargetServiceServer.

func (Service) ListTargets

ListTargets implements the interface pbs.TargetServiceServer.

func (Service) RemoveTargetHostSets

RemoveTargetHostSets implements the interface pbs.TargetServiceServer.

func (Service) SetTargetHostSets

SetTargetHostSets implements the interface pbs.TargetServiceServer.

func (Service) UpdateTarget

UpdateTarget implements the interface pbs.TargetServiceServer.

Jump to

Keyboard shortcuts

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