Documentation ¶
Index ¶
- type NginxStaticContainerInitializer
- func (s NginxStaticContainerInitializer) GetDockerImage() string
- func (s NginxStaticContainerInitializer) GetFilesArtifactMountpoints() map[services.FilesArtifactID]string
- func (s NginxStaticContainerInitializer) GetFilesToMount() map[string]bool
- func (s NginxStaticContainerInitializer) GetService(serviceId services.ServiceID, ipAddr string) services.Service
- func (s NginxStaticContainerInitializer) GetStartCommand(mountedFileFilepaths map[string]string, ipPlaceholder string) ([]string, error)
- func (s NginxStaticContainerInitializer) GetTestVolumeMountpoint() string
- func (s NginxStaticContainerInitializer) GetUsedPorts() map[string]bool
- func (s NginxStaticContainerInitializer) InitializeMountedFiles(mountedFiles map[string]*os.File) error
- type NginxStaticService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NginxStaticContainerInitializer ¶
type NginxStaticContainerInitializer struct {
// contains filtered or unexported fields
}
A DockerContainerInitializer to launch an NginxStaticService pre-initialized with the contents of
the given files artifact
func NewNginxStaticContainerInitializer ¶
func NewNginxStaticContainerInitializer(filesArtifactId services.FilesArtifactID) *NginxStaticContainerInitializer
func (NginxStaticContainerInitializer) GetDockerImage ¶
func (s NginxStaticContainerInitializer) GetDockerImage() string
func (NginxStaticContainerInitializer) GetFilesArtifactMountpoints ¶
func (s NginxStaticContainerInitializer) GetFilesArtifactMountpoints() map[services.FilesArtifactID]string
func (NginxStaticContainerInitializer) GetFilesToMount ¶
func (s NginxStaticContainerInitializer) GetFilesToMount() map[string]bool
func (NginxStaticContainerInitializer) GetService ¶
func (NginxStaticContainerInitializer) GetStartCommand ¶
func (NginxStaticContainerInitializer) GetTestVolumeMountpoint ¶
func (s NginxStaticContainerInitializer) GetTestVolumeMountpoint() string
func (NginxStaticContainerInitializer) GetUsedPorts ¶
func (s NginxStaticContainerInitializer) GetUsedPorts() map[string]bool
func (NginxStaticContainerInitializer) InitializeMountedFiles ¶
func (s NginxStaticContainerInitializer) InitializeMountedFiles(mountedFiles map[string]*os.File) error
type NginxStaticService ¶
type NginxStaticService struct {
// contains filtered or unexported fields
}
An Nginx service that serves files mounted in the /static directory
func (NginxStaticService) GetFileContents ¶
func (n NginxStaticService) GetFileContents(filename string) (string, error)
func (NginxStaticService) GetIPAddress ¶
func (n NginxStaticService) GetIPAddress() string
func (NginxStaticService) GetServiceID ¶
func (n NginxStaticService) GetServiceID() services.ServiceID
func (NginxStaticService) IsAvailable ¶
func (n NginxStaticService) IsAvailable() bool
Click to show internal directories.
Click to hide internal directories.