Documentation ¶
Index ¶
- type ApiContainerInitializer
- func (initializer ApiContainerInitializer) GetDockerImage() string
- func (initializer ApiContainerInitializer) GetFilesArtifactMountpoints() map[services.FilesArtifactID]string
- func (initializer ApiContainerInitializer) GetFilesToMount() map[string]bool
- func (initializer ApiContainerInitializer) GetService(serviceId services.ServiceID, ipAddr string) services.Service
- func (initializer ApiContainerInitializer) GetStartCommand(mountedFileFilepaths map[string]string, ipPlaceholder string) ([]string, error)
- func (initializer ApiContainerInitializer) GetTestVolumeMountpoint() string
- func (initializer ApiContainerInitializer) GetUsedPorts() map[string]bool
- func (initializer ApiContainerInitializer) InitializeMountedFiles(mountedFiles map[string]*os.File) error
- type ApiService
- func (service ApiService) AddPerson(id int) error
- func (service ApiService) GetIPAddress() string
- func (service ApiService) GetPerson(id int) (Person, error)
- func (service ApiService) GetServiceID() services.ServiceID
- func (service ApiService) IncrementBooksRead(id int) error
- func (service ApiService) IsAvailable() bool
- type Person
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiContainerInitializer ¶
type ApiContainerInitializer struct {
// contains filtered or unexported fields
}
func NewApiContainerInitializer ¶
func NewApiContainerInitializer(dockerImage string, datastore *datastore.DatastoreService) *ApiContainerInitializer
func (ApiContainerInitializer) GetDockerImage ¶
func (initializer ApiContainerInitializer) GetDockerImage() string
func (ApiContainerInitializer) GetFilesArtifactMountpoints ¶
func (initializer ApiContainerInitializer) GetFilesArtifactMountpoints() map[services.FilesArtifactID]string
func (ApiContainerInitializer) GetFilesToMount ¶
func (initializer ApiContainerInitializer) GetFilesToMount() map[string]bool
func (ApiContainerInitializer) GetService ¶
func (ApiContainerInitializer) GetStartCommand ¶
func (ApiContainerInitializer) GetTestVolumeMountpoint ¶
func (initializer ApiContainerInitializer) GetTestVolumeMountpoint() string
func (ApiContainerInitializer) GetUsedPorts ¶
func (initializer ApiContainerInitializer) GetUsedPorts() map[string]bool
func (ApiContainerInitializer) InitializeMountedFiles ¶
func (initializer ApiContainerInitializer) InitializeMountedFiles(mountedFiles map[string]*os.File) error
type ApiService ¶
type ApiService struct {
// contains filtered or unexported fields
}
func NewApiService ¶
func NewApiService(serviceId services.ServiceID, ipAddr string, port int) *ApiService
func (ApiService) AddPerson ¶
func (service ApiService) AddPerson(id int) error
func (ApiService) GetIPAddress ¶
func (service ApiService) GetIPAddress() string
func (ApiService) GetServiceID ¶
func (service ApiService) GetServiceID() services.ServiceID
===========================================================================================
Service interface methods
===========================================================================================
func (ApiService) IncrementBooksRead ¶
func (service ApiService) IncrementBooksRead(id int) error
func (ApiService) IsAvailable ¶
func (service ApiService) IsAvailable() bool
Click to show internal directories.
Click to hide internal directories.