cmd

package
v4.37.5 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DockerImageName = "authelia/authelia"

DockerImageName the official name of Authelia docker image.

View Source
var ErrNoRunningSuite = errors.New("no running suite")

ErrNoRunningSuite error raised when no suite is running.

View Source
var ErrNotAvailableSuite = errors.New("unavailable suite")

ErrNotAvailableSuite error raised when suite is not available.

View Source
var IntermediateDockerImageName = "authelia:dist"

IntermediateDockerImageName local name of the docker image.

View Source
var OutputDir = "dist"

OutputDir the output directory where the built version of Authelia is located.

Functions

func NewRootCmd

func NewRootCmd() (cmd *cobra.Command)

NewRootCmd returns the root authelia-scripts cmd.

Types

type Build added in v4.36.9

type Build struct {
	Branch string
	Tag    string
	Commit string
	Tagged bool
	Clean  bool
	Extra  string
	Number int
	Date   time.Time
}

Build represents a builds metadata.

func (Build) ContainerLabels added in v4.36.9

func (b Build) ContainerLabels() (labels map[string]string)

ContainerLabels returns the container labels for this Build.

func (Build) State added in v4.36.9

func (b Build) State() string

State returns the state tags string for this Build.

func (Build) States added in v4.36.9

func (b Build) States() []string

States returns the state tags for this Build.

func (Build) XFlags added in v4.36.9

func (b Build) XFlags() []string

XFlags returns the XFlags for this Build.

type Docker

type Docker struct{}

Docker a docker object.

func (*Docker) Build

func (d *Docker) Build(tag, dockerfile, target string, buildMetaData *Build) error

Build build a docker image.

func (*Docker) Login

func (d *Docker) Login(username, password, registry string) error

Login login to the dockerhub registry.

func (*Docker) Manifest

func (d *Docker) Manifest(tags []string) error

Manifest push a docker manifest to dockerhub.

func (*Docker) PublishReadme

func (d *Docker) PublishReadme() error

PublishReadme push README.md to dockerhub.

func (*Docker) Tag

func (d *Docker) Tag(image, tag string) error

Tag tag a docker image.

type DockerImage added in v4.36.9

type DockerImage struct {
	Architecture string `json:"architecture"`
	Variant      any    `json:"variant"`
	Digest       string `json:"digest"`
	OS           string `json:"os"`
}

DockerImage represents some of the data from the docker images API.

func (DockerImage) Match added in v4.36.9

func (d DockerImage) Match(platform string) bool

Match returns true if this image matches the platform.

type DockerImages added in v4.36.9

type DockerImages []DockerImage

DockerImages represents some of the data from the docker images API.

type HostEntry

type HostEntry struct {
	Domain string
	IP     string
}

HostEntry represents an entry in /etc/hosts.

Jump to

Keyboard shortcuts

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