compose

package
v0.3.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2022 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ComposeServiceConfigType represents the Compose service config type
	ComposeServiceConfigType transformertypes.ConfigType = "ComposeService"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ComposeAnalyser

type ComposeAnalyser struct {
	Config transformertypes.Transformer
	Env    *environment.Environment
}

ComposeAnalyser implements Transformer interface

func (*ComposeAnalyser) DirectoryDetect

func (t *ComposeAnalyser) DirectoryDetect(dir string) (services map[string][]transformertypes.Artifact, err error)

DirectoryDetect detects docker compose files

func (*ComposeAnalyser) GetConfig

GetConfig returns the config

func (*ComposeAnalyser) Init

Init Initializes the transformer

func (*ComposeAnalyser) Transform

Transform transforms the artifacts

type ComposeConfig

type ComposeConfig struct {
	ServiceName string `yaml:"serviceName,omitempty"`
}

ComposeConfig stores the config for compose service

type ComposeGenerator

type ComposeGenerator struct {
	Config transformertypes.Transformer
	Env    *environment.Environment
}

ComposeGenerator implements Transformer interface

func (*ComposeGenerator) DirectoryDetect

func (t *ComposeGenerator) DirectoryDetect(dir string) (services map[string][]transformertypes.Artifact, err error)

DirectoryDetect executes detect in each sub directory

func (*ComposeGenerator) GetConfig

GetConfig returns the transformer config

func (*ComposeGenerator) Init

Init Initializes the transformer

func (*ComposeGenerator) Transform

func (t *ComposeGenerator) Transform(newArtifacts []transformertypes.Artifact, alreadySeenArtifacts []transformertypes.Artifact) (pathMappings []transformertypes.PathMapping, createdArtifacts []transformertypes.Artifact, err error)

Transform transforms the artifacts

Jump to

Keyboard shortcuts

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