targets

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: 43 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,
		action.AddHostSets,
		action.SetHostSets,
		action.RemoveHostSets,
		action.AddHostSources,
		action.SetHostSources,
		action.RemoveHostSources,
		action.AddCredentialLibraries,
		action.SetCredentialLibraries,
		action.RemoveCredentialLibraries,
		action.AddCredentialSources,
		action.SetCredentialSources,
		action.RemoveCredentialSources,
		action.AuthorizeSession,
	}

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

Functions

func Register added in v0.7.4

func Register(s subtypes.Subtype, maskManager handlers.MaskManager, af attributeFunc, sf setAttributeFunc)

Register registers a subtype for used by the service handler.

Types

type Attributes added in v0.7.4

type Attributes interface {
	proto.Message

	// Options create target.Options to be used to create a target.Target.
	Options() []target.Option
	// Vet validates the Attributes and returns a map of fields to error messages
	// if any fields are invalid.
	Vet() map[string]string
}

Attributes represent the subtype specific request/response attributes.

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(
	ctx context.Context,
	kmsCache *kms.Kms,
	repoFn common.TargetRepoFactory,
	iamRepoFn common.IamRepoFactory,
	serversRepoFn common.ServersRepoFactory,
	sessionRepoFn common.SessionRepoFactory,
	pluginHostRepoFn common.PluginHostRepoFactory,
	staticHostRepoFn common.StaticRepoFactory,
	vaultCredRepoFn common.VaultCredentialRepoFactory,
) (Service, error)

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

func (Service) AddTargetCredentialLibraries added in v0.4.0

DEPRECATED: AddTargetCredentialLibraries implements the interface pbs.TargetServiceServer.

func (Service) AddTargetCredentialSources added in v0.5.0

AddTargetCredentialSources implements the interface pbs.TargetServiceServer.

func (Service) AddTargetHostSets

AddTargetHostSets implements the interface pbs.TargetServiceServer.

func (Service) AddTargetHostSources added in v0.5.0

AddTargetHostSources 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

GetTarget implements the interface pbs.TargetServiceServer.

func (Service) ListTargets

ListTargets implements the interface pbs.TargetServiceServer.

func (Service) RemoveTargetCredentialLibraries added in v0.4.0

DEPRECATED: RemoveTargetCredentialLibraries implements the interface pbs.TargetServiceServer.

func (Service) RemoveTargetCredentialSources added in v0.5.0

RemoveTargetCredentialSources implements the interface pbs.TargetServiceServer.

func (Service) RemoveTargetHostSets

RemoveTargetHostSets implements the interface pbs.TargetServiceServer.

func (Service) RemoveTargetHostSources added in v0.5.0

RemoveTargetHostSources implements the interface pbs.TargetServiceServer.

func (Service) SetTargetCredentialLibraries added in v0.4.0

DEPRECATED: SetTargetCredentialLibraries implements the interface pbs.TargetServiceServer.

func (Service) SetTargetCredentialSources added in v0.5.0

SetTargetCredentialSources implements the interface pbs.TargetServiceServer.

func (Service) SetTargetHostSets

SetTargetHostSets implements the interface pbs.TargetServiceServer.

func (Service) SetTargetHostSources added in v0.5.0

SetTargetHostSources implements the interface pbs.TargetServiceServer.

func (Service) UpdateTarget

UpdateTarget implements the interface pbs.TargetServiceServer.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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