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 ¶
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, pluginRepoFn common.PluginHostRepoFactory) (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.