server

package
v0.0.0-...-4da4744 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 26, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

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

DownloadContentItem - download content item

func (*Server) GetVersion

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL