Documentation ¶
Index ¶
- func GRPC(config config.AutomateCdsConfig, s *service.Service) error
- func NewGRPCServer(s *service.Service, profilesServiceClient profiles.ProfilesServiceClient) *grpc.Server
- type Server
- func (s *Server) DownloadContentItem(request *request.DownloadContentItem, ...) error
- func (s *Server) GetVersion(ctx context.Context, _ *ver_api.VersionInfoRequest) (*ver_api.VersionInfo, error)
- func (s *Server) InstallContentItem(ctx context.Context, request *request.InstallContentItem) (*response.InstallContentItem, error)
- func (s *Server) IsContentEnabled(ctx context.Context, request *request.ContentEnabled) (*response.ContentEnabled, error)
- func (s *Server) ListContentItems(ctx context.Context, request *request.ContentItems) (*response.ContentItems, error)
- func (s *Server) SubmitCredentials(ctx context.Context, request *request.Credentials) (*response.Credentials, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GRPC ¶
func GRPC(config config.AutomateCdsConfig, s *service.Service) error
GRPC creates and listens on grpc server
func NewGRPCServer ¶
func NewGRPCServer(s *service.Service, profilesServiceClient profiles.ProfilesServiceClient) *grpc.Server
NewGRPCServer creates a grpc server that serves all Teams GRPC APIs
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is an Automate CDS proxy server
func NewServer ¶
func NewServer(service *service.Service, profilesServiceClient profiles.ProfilesServiceClient) *Server
NewServer returns an Automate CDS proxy server
func (*Server) DownloadContentItem ¶
func (s *Server) DownloadContentItem(request *request.DownloadContentItem, stream interservice.AutomateCdsService_DownloadContentItemServer) error
DownloadContentItem - download content item
func (*Server) GetVersion ¶
func (s *Server) GetVersion( ctx context.Context, _ *ver_api.VersionInfoRequest) (*ver_api.VersionInfo, error)
GetVersion returns the version of Automate CDS GRPC API
func (*Server) InstallContentItem ¶
func (s *Server) InstallContentItem(ctx context.Context, request *request.InstallContentItem) (*response.InstallContentItem, error)
InstallContentItem - installing a content item
func (*Server) IsContentEnabled ¶
func (s *Server) IsContentEnabled(ctx context.Context, request *request.ContentEnabled) (*response.ContentEnabled, error)
IsContentEnabled - Check if the content is enable for this Automate instance.
func (*Server) ListContentItems ¶
func (s *Server) ListContentItems(ctx context.Context, request *request.ContentItems) (*response.ContentItems, error)
ListContentItems - Returns a list of CDS content metadata
func (*Server) SubmitCredentials ¶
func (s *Server) SubmitCredentials(ctx context.Context, request *request.Credentials) (*response.Credentials, error)
SubmitCredentials - Submit a Chef Cloud credentials to enable content
Click to show internal directories.
Click to hide internal directories.