docker

package
v0.0.0-...-65ee0f0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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 DockerCommand

func DockerCommand(c *cli.Context) (err error)

DockerCommand provides the entry for goctl docker

func GenTemplates

func GenTemplates(_ *cli.Context) 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
	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