Documentation ¶
Index ¶
- Variables
- type Service
- func (s Service) CreateHost(ctx context.Context, req *pbs.CreateHostRequest) (*pbs.CreateHostResponse, error)
- func (s Service) DeleteHost(ctx context.Context, req *pbs.DeleteHostRequest) (*pbs.DeleteHostResponse, error)
- func (s Service) GetHost(ctx context.Context, req *pbs.GetHostRequest) (*pbs.GetHostResponse, error)
- func (s Service) ListHosts(ctx context.Context, req *pbs.ListHostsRequest) (*pbs.ListHostsResponse, error)
- func (s Service) UpdateHost(ctx context.Context, req *pbs.UpdateHostRequest) (*pbs.UpdateHostResponse, 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.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 ¶
This section is empty.
Types ¶
type Service ¶
type Service struct { pbs.UnimplementedHostServiceServer // contains filtered or unexported fields }
func NewService ¶
func NewService(repoFn common.StaticRepoFactory) (Service, error)
NewService returns a host Service which handles host related requests to boundary and uses the provided repositories for storage and retrieval.
func (Service) CreateHost ¶
func (s Service) CreateHost(ctx context.Context, req *pbs.CreateHostRequest) (*pbs.CreateHostResponse, error)
CreateHost implements the interface pbs.HostServiceServer.
func (Service) DeleteHost ¶
func (s Service) DeleteHost(ctx context.Context, req *pbs.DeleteHostRequest) (*pbs.DeleteHostResponse, error)
DeleteHost implements the interface pbs.HostServiceServer.
func (Service) GetHost ¶
func (s Service) GetHost(ctx context.Context, req *pbs.GetHostRequest) (*pbs.GetHostResponse, error)
GetHost implements the interface pbs.HostServiceServer.
func (Service) ListHosts ¶
func (s Service) ListHosts(ctx context.Context, req *pbs.ListHostsRequest) (*pbs.ListHostsResponse, error)
func (Service) UpdateHost ¶
func (s Service) UpdateHost(ctx context.Context, req *pbs.UpdateHostRequest) (*pbs.UpdateHostResponse, error)
UpdateHost implements the interface pbs.HostServiceServer.
Click to show internal directories.
Click to hide internal directories.