docker

package
v0.0.0-...-f9c27df Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// Cmd describes a docker command.
	Cmd = cobrax.NewCommand("docker", cobrax.WithRunE(dockerCommand))
)

Functions

func Category

func Category() string

Category returns the const string of docker category

func Clean

func Clean() error

Clean deletes all templates files

func GenTemplates

func GenTemplates() error

GenTemplates creates docker template files

func RevertTemplate

func RevertTemplate(name string) error

RevertTemplate recovers the deleted template files

func Update

func Update() error

Update deletes and creates new template files

Types

type Docker

type Docker struct {
	Chinese     bool
	GoMainFrom  string
	GoRelPath   string
	GoFile      string
	ExeFile     string
	BaseImage   string
	HasPort     bool
	Port        int
	Argument    string
	Version     string
	HasTimezone bool
	Timezone    string
}

Docker describes a dockerfile

Jump to

Keyboard shortcuts

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