docker

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: GPL-3.0 Imports: 10 Imported by: 2

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
	ServiceName string
	ServiceType string
	BaseImage   string
	HasPort     bool
	Port        int
	Image       string
	HasTimezone bool
	Timezone    string
	Author      string
}

Docker describes a dockerfile

type GenContext

type GenContext struct {
	Home        string
	Image       string
	Remote      string
	Branch      string
	TimeZone    string
	Base        string
	Port        int
	ServiceName string
	ServiceType string
	China       bool
	Author      string
	LocalBuild  bool
}

Jump to

Keyboard shortcuts

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