Documentation ¶
Index ¶
- Variables
- func Register(s subtypes.Subtype, maskManager handlers.MaskManager, af attributeFunc, ...)
- type Attributes
- type Service
- func (s Service) AddTargetCredentialSources(ctx context.Context, req *pbs.AddTargetCredentialSourcesRequest) (*pbs.AddTargetCredentialSourcesResponse, error)
- func (s Service) AddTargetHostSources(ctx context.Context, req *pbs.AddTargetHostSourcesRequest) (*pbs.AddTargetHostSourcesResponse, error)
- func (s Service) AuthorizeSession(ctx context.Context, req *pbs.AuthorizeSessionRequest) (*pbs.AuthorizeSessionResponse, error)
- func (s Service) CreateTarget(ctx context.Context, req *pbs.CreateTargetRequest) (*pbs.CreateTargetResponse, error)
- func (s Service) DeleteTarget(ctx context.Context, req *pbs.DeleteTargetRequest) (*pbs.DeleteTargetResponse, error)
- func (s Service) GetTarget(ctx context.Context, req *pbs.GetTargetRequest) (*pbs.GetTargetResponse, error)
- func (s Service) ListTargets(ctx context.Context, req *pbs.ListTargetsRequest) (*pbs.ListTargetsResponse, error)
- func (s Service) RemoveTargetCredentialSources(ctx context.Context, req *pbs.RemoveTargetCredentialSourcesRequest) (*pbs.RemoveTargetCredentialSourcesResponse, error)
- func (s Service) RemoveTargetHostSources(ctx context.Context, req *pbs.RemoveTargetHostSourcesRequest) (*pbs.RemoveTargetHostSourcesResponse, error)
- func (s Service) SetTargetCredentialSources(ctx context.Context, req *pbs.SetTargetCredentialSourcesRequest) (*pbs.SetTargetCredentialSourcesResponse, error)
- func (s Service) SetTargetHostSources(ctx context.Context, req *pbs.SetTargetHostSourcesRequest) (*pbs.SetTargetHostSourcesResponse, error)
- func (s Service) UpdateTarget(ctx context.Context, req *pbs.UpdateTargetRequest) (*pbs.UpdateTargetResponse, error)
Constants ¶
This section is empty.
Variables ¶
var ( // ExtraWorkerFilters contains any custom worker filters that should be // layered in at session authorization time. These will be executed in-order // with the results from one fed into the next. ExtraWorkerFilters []extraWorkerFilterFunc // 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.AddHostSources, action.SetHostSources, action.RemoveHostSources, 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 ¶
Types ¶
type Attributes ¶
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 // VetForUpdate validates the Attributes for an updated resource with the // provided mask paths and returns a map of fields to error messages if any // fields are invalid. VetForUpdate([]string) map[string]string }
Attributes represent the subtype specific request/response attributes.
type Service ¶
type Service struct { pbs.UnsafeTargetServiceServer // 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 target.RepositoryFactory, iamRepoFn common.IamRepoFactory, serversRepoFn common.ServersRepoFactory, sessionRepoFn session.RepositoryFactory, pluginHostRepoFn common.PluginHostRepoFactory, staticHostRepoFn common.StaticRepoFactory, vaultCredRepoFn common.VaultCredentialRepoFactory, staticCredRepoFn common.StaticCredentialRepoFactory, workerStatusGracePeriod *atomic.Int64, ) (Service, error)
NewService returns a target service which handles target related requests to boundary.
func (Service) AddTargetCredentialSources ¶
func (s Service) AddTargetCredentialSources(ctx context.Context, req *pbs.AddTargetCredentialSourcesRequest) (*pbs.AddTargetCredentialSourcesResponse, error)
AddTargetCredentialSources implements the interface pbs.TargetServiceServer.
func (Service) AddTargetHostSources ¶
func (s Service) AddTargetHostSources(ctx context.Context, req *pbs.AddTargetHostSourcesRequest) (*pbs.AddTargetHostSourcesResponse, error)
AddTargetHostSources implements the interface pbs.TargetServiceServer.
func (Service) AuthorizeSession ¶
func (s Service) AuthorizeSession(ctx context.Context, req *pbs.AuthorizeSessionRequest) (*pbs.AuthorizeSessionResponse, error)
func (Service) CreateTarget ¶
func (s Service) CreateTarget(ctx context.Context, req *pbs.CreateTargetRequest) (*pbs.CreateTargetResponse, error)
CreateTarget implements the interface pbs.TargetServiceServer.
func (Service) DeleteTarget ¶
func (s Service) DeleteTarget(ctx context.Context, req *pbs.DeleteTargetRequest) (*pbs.DeleteTargetResponse, error)
DeleteTarget implements the interface pbs.TargetServiceServer.
func (Service) GetTarget ¶
func (s Service) GetTarget(ctx context.Context, req *pbs.GetTargetRequest) (*pbs.GetTargetResponse, error)
GetTarget implements the interface pbs.TargetServiceServer.
func (Service) ListTargets ¶
func (s Service) ListTargets(ctx context.Context, req *pbs.ListTargetsRequest) (*pbs.ListTargetsResponse, error)
ListTargets implements the interface pbs.TargetServiceServer.
func (Service) RemoveTargetCredentialSources ¶
func (s Service) RemoveTargetCredentialSources(ctx context.Context, req *pbs.RemoveTargetCredentialSourcesRequest) (*pbs.RemoveTargetCredentialSourcesResponse, error)
RemoveTargetCredentialSources implements the interface pbs.TargetServiceServer.
func (Service) RemoveTargetHostSources ¶
func (s Service) RemoveTargetHostSources(ctx context.Context, req *pbs.RemoveTargetHostSourcesRequest) (*pbs.RemoveTargetHostSourcesResponse, error)
RemoveTargetHostSources implements the interface pbs.TargetServiceServer.
func (Service) SetTargetCredentialSources ¶
func (s Service) SetTargetCredentialSources(ctx context.Context, req *pbs.SetTargetCredentialSourcesRequest) (*pbs.SetTargetCredentialSourcesResponse, error)
SetTargetCredentialSources implements the interface pbs.TargetServiceServer.
func (Service) SetTargetHostSources ¶
func (s Service) SetTargetHostSources(ctx context.Context, req *pbs.SetTargetHostSourcesRequest) (*pbs.SetTargetHostSourcesResponse, error)
SetTargetHostSources implements the interface pbs.TargetServiceServer.
func (Service) UpdateTarget ¶
func (s Service) UpdateTarget(ctx context.Context, req *pbs.UpdateTargetRequest) (*pbs.UpdateTargetResponse, error)
UpdateTarget implements the interface pbs.TargetServiceServer.