Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Version = "head"
)
Functions ¶
This section is empty.
Types ¶
type Args ¶
type Args struct { Addr string `` /* 130-byte string literal not displayed */ Base string `arg:"env:DOCKHOOK_BASE" default:"/" help:"sets the base for http router."` Hostname string `arg:"env:DOCKHOOK_HOSTNAME" help:"sets the hostname for display. This is useful with multiple DockHook instances."` AuthProvider string `` /* 148-byte string literal not displayed */ Level string `arg:"env:DOCKHOOK_LEVEL" default:"info" help:"set DockHook log level. Use debug for more logging."` WaitForDockerSeconds int `` /* 165-byte string literal not displayed */ FilterStrings []string `arg:"env:DOCKHOOK_FILTER,--filter,separate" help:"filters docker containers using Docker syntax."` Filter map[string][]string `arg:"-"` RemoteHost []string `arg:"env:DOCKHOOK_REMOTE_HOST,--remote-host,separate" help:"list of hosts to connect remotely"` HealthcheckCmd *HealthcheckCmd `arg:"subcommand:command" help:"checks if the server is running"` CreateUserCmd *CreateUserCmd `arg:"subcommand:create-user" help:"creates a new user and saves it in configuration file for simple auth"` CreateWebhookCmd *CreateWebhookCmd `arg:"subcommand:create-webhook" help:"creates a new webhook and saves it in configuration file"` }
type CreateUserCmd ¶
type CreateUserCmd struct { Username string `arg:"positional"` Password string `arg:"--password, -p" help:"sets the password for the user"` Name string `arg:"--name, -n" help:"sets the display name for the user"` Email string `arg:"--email, -e" help:"sets the email for the user"` WithoutSave bool `arg:"--without-save, -w" help:"don't save the user to file"` }
type CreateWebhookCmd ¶
type CreateWebhookCmd struct {
DockerComposeOnly bool `arg:"--docker-compose-only, -o" help:"find only docker compose container'"`
}
type HealthcheckCmd ¶
type HealthcheckCmd struct { }
Click to show internal directories.
Click to hide internal directories.