api

package
v0.0.0-...-aedf96a Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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 (initializer ApiContainerInitializer) GetService(serviceId services.ServiceID, ipAddr string) services.Service

func (ApiContainerInitializer) GetStartCommand

func (initializer ApiContainerInitializer) GetStartCommand(mountedFileFilepaths map[string]string, ipPlaceholder string) ([]string, error)

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) GetPerson

func (service ApiService) GetPerson(id int) (Person, error)

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

type Person

type Person struct {
	BooksRead int
}

Jump to

Keyboard shortcuts

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