template

package
v4.2.1+incompatible Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSharedExternalDataContainers

func GetSharedExternalDataContainers(templateName string) []helpers.DockerDataContainer

GetSharedExternalDataContainers will return a slice of data containers used by the given template

func GetTemplate

func GetTemplate(templateName string, enableScratchVolume bool, templateImage string) (string, error)

GetTemplate returns the template if found will inspect the compose file at "docker-comopse.yml" to determine the correct file version to use when retrieving the template

currently defaults to V1 if no version found

func GetV1

func GetV1(name string, enableScratchVolume bool, templateImage string) (string, error)

GetV1 will return the compose V1 template if it exists If 'enableScratchVolume' is true and the target template supports scratch-space optimization then Get will enable it.

func GetV2

func GetV2(name string, enableScratchVolume bool, templateImage string) (string, error)

GetV2 will return the compose V2 template if it exists If 'enableScratchVolume' is true and the target template supports scratch-space optimization then Get will enable it.

func ListV1

func ListV1() []string

ListV1 will return a slice of all known v1 templates

func ListV2

func ListV2() []string

ListV2 will return a slice of all known v2 templates

Types

This section is empty.

Jump to

Keyboard shortcuts

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