nginx_static

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: 7 Imported by: 0

Documentation

Index

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

func (NginxStaticContainerInitializer) GetStartCommand

func (s NginxStaticContainerInitializer) GetStartCommand(mountedFileFilepaths map[string]string, ipPlaceholder string) ([]string, error)

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

Jump to

Keyboard shortcuts

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