Documentation ¶
Index ¶
- Constants
- func ProjectFromConfig(config *Config) (*types.Project, error)
- func WithContainerImages(o *cli.ProjectOptions, images ContainerImages)
- type Config
- type ConfigOptFn
- type ContainerImages
- type ContextKeyType
- type DockerEnv
- func (e *DockerEnv) Context(ctx context.Context) (context.Context, error)
- func (e *DockerEnv) Deployments() []string
- func (e *DockerEnv) Endpoints(_ context.Context) (*envtypes.Endpoints, error)
- func (e *DockerEnv) ServiceLogs(ctx context.Context, services []string, startTime time.Time, ...) error
- func (e *DockerEnv) Services(ctx context.Context) (envtypes.Services, error)
- func (e *DockerEnv) ServicesReady(ctx context.Context) (bool, error)
- func (e *DockerEnv) SetUp(ctx context.Context) error
- func (e *DockerEnv) TearDown(ctx context.Context) error
- type Service
- type ServiceCollection
Constants ¶
View Source
const ( APIServerImageEnv = "VMCLARITY_APISERVER_CONTAINER_IMAGE" OrchestratorImageEnv = "VMCLARITY_ORCHESTRATOR_CONTAINER_IMAGE" UIImageEnv = "VMCLARITY_UI_CONTAINER_IMAGE" UIBackendImageEnv = "VMCLARITY_UIBACKEND_CONTAINER_IMAGE" ScannerImageEnv = "VMCLARITY_SCANNER_CONTAINER_IMAGE" PluginKicsEnv = "VMCLARITY_PLUGIN_KICS_CONTAINER_IMAGE" )
View Source
const ( ApplicationName = "vmclarity" ContainerStateRunning = "running" ContainerStateExited = "exited" ContainerStateDead = "dead" ContainerStateHealthy = "healthy" )
Variables ¶
This section is empty.
Functions ¶
func WithContainerImages ¶
func WithContainerImages(o *cli.ProjectOptions, images ContainerImages)
Types ¶
type Config ¶
type Config struct { // EnvName the name of the environment to be created EnvName string `mapstructure:"env_name"` // Images used for docker deployment Images ContainerImages `mapstructure:",squash"` // ComposeFiles contains the list of docker compose files used for deployment ComposeFiles []string `mapstructure:"compose_files"` // WorkDir absolute path to the directory where the deployment files prior performing actions WorkDir string `mapstructure:"work_dir"` // SkipAssetInstall defines whether to deploy test assets to environment or not SkipAssetInstall bool `mapstructure:"skip_asset_install"` // contains filtered or unexported fields }
type ConfigOptFn ¶
ConfigOptFn defines transformer function for Config.
func WithContext ¶
func WithContext(ctx context.Context) ConfigOptFn
type ContainerImages ¶
type ContainerImages = envtypes.ContainerImages[string]
type ContextKeyType ¶
type ContextKeyType string
const ( GatewayServiceName = "gateway" DockerComposeContextKey ContextKeyType = "DockerCompose" )
type DockerEnv ¶
type DockerEnv struct {
// contains filtered or unexported fields
}
func (*DockerEnv) Deployments ¶
func (*DockerEnv) ServiceLogs ¶
func (*DockerEnv) ServicesReady ¶
type Service ¶
type Service struct { ID string Namespace string Application string Component string State envtypes.ServiceState }
Service is the types.Service interface implementation.
func (Service) GetApplicationName ¶
func (Service) GetComponentName ¶
func (Service) GetNamespace ¶
func (Service) GetState ¶
func (s Service) GetState() envtypes.ServiceState
type ServiceCollection ¶
func NewServiceCollectionFromProject ¶
func NewServiceCollectionFromProject(p *types.Project) ServiceCollection
func (ServiceCollection) AsServices ¶
func (c ServiceCollection) AsServices() envtypes.Services
func (ServiceCollection) ServiceNames ¶
func (c ServiceCollection) ServiceNames() []string
Click to show internal directories.
Click to hide internal directories.