Documentation ¶
Index ¶
- Variables
- type Service
- func (s Service) AddHostSetHosts(ctx context.Context, req *pbs.AddHostSetHostsRequest) (*pbs.AddHostSetHostsResponse, error)
- func (s Service) CreateHostSet(ctx context.Context, req *pbs.CreateHostSetRequest) (*pbs.CreateHostSetResponse, error)
- func (s Service) DeleteHostSet(ctx context.Context, req *pbs.DeleteHostSetRequest) (*pbs.DeleteHostSetResponse, error)
- func (s Service) GetHostSet(ctx context.Context, req *pbs.GetHostSetRequest) (*pbs.GetHostSetResponse, error)
- func (s Service) ListHostSets(ctx context.Context, req *pbs.ListHostSetsRequest) (*pbs.ListHostSetsResponse, error)
- func (s Service) RemoveHostSetHosts(ctx context.Context, req *pbs.RemoveHostSetHostsRequest) (*pbs.RemoveHostSetHostsResponse, error)
- func (s Service) SetHostSetHosts(ctx context.Context, req *pbs.SetHostSetHostsRequest) (*pbs.SetHostSetHostsResponse, error)
- func (s Service) UpdateHostSet(ctx context.Context, req *pbs.UpdateHostSetRequest) (*pbs.UpdateHostSetResponse, error)
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.AddHosts, action.SetHosts, action.RemoveHosts, } // 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.UnimplementedHostSetServiceServer // contains filtered or unexported fields }
func NewService ¶
func NewService(repoFn common.StaticRepoFactory) (Service, error)
NewService returns a host set Service which handles host set related requests to boundary and uses the provided repositories for storage and retrieval.
func (Service) AddHostSetHosts ¶
func (s Service) AddHostSetHosts(ctx context.Context, req *pbs.AddHostSetHostsRequest) (*pbs.AddHostSetHostsResponse, error)
AddHostSetHosts implements the interface pbs.HostSetServiceServer.
func (Service) CreateHostSet ¶
func (s Service) CreateHostSet(ctx context.Context, req *pbs.CreateHostSetRequest) (*pbs.CreateHostSetResponse, error)
CreateHostSet implements the interface pbs.HostSetServiceServer.
func (Service) DeleteHostSet ¶
func (s Service) DeleteHostSet(ctx context.Context, req *pbs.DeleteHostSetRequest) (*pbs.DeleteHostSetResponse, error)
DeleteHostSet implements the interface pbs.HostSetServiceServer.
func (Service) GetHostSet ¶
func (s Service) GetHostSet(ctx context.Context, req *pbs.GetHostSetRequest) (*pbs.GetHostSetResponse, error)
GetHostSet implements the interface pbs.HostSetServiceServer.
func (Service) ListHostSets ¶
func (s Service) ListHostSets(ctx context.Context, req *pbs.ListHostSetsRequest) (*pbs.ListHostSetsResponse, error)
func (Service) RemoveHostSetHosts ¶
func (s Service) RemoveHostSetHosts(ctx context.Context, req *pbs.RemoveHostSetHostsRequest) (*pbs.RemoveHostSetHostsResponse, error)
RemoveHostSetHosts implements the interface pbs.HostSetServiceServer.
func (Service) SetHostSetHosts ¶
func (s Service) SetHostSetHosts(ctx context.Context, req *pbs.SetHostSetHostsRequest) (*pbs.SetHostSetHostsResponse, error)
SetHostSetHosts implements the interface pbs.HostSetServiceServer.
func (Service) UpdateHostSet ¶
func (s Service) UpdateHostSet(ctx context.Context, req *pbs.UpdateHostSetRequest) (*pbs.UpdateHostSetResponse, error)
UpdateHostSet implements the interface pbs.HostSetServiceServer.
Click to show internal directories.
Click to hide internal directories.