Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrIllegalLablePrefix = errors.New("illegal label prefix") ErrImageNotFound = errors.New("image not found") ErrSSHKeyNotFound = errors.New("SSH key not found") ErrNetworkNotFound = errors.New("network not found") ErrFirewallNotFound = errors.New("firewall not found") ErrServerTypeNotFound = errors.New("server type not found") )
View Source
var ProviderFlags = []cli.Flag{ &cli.StringFlag{ Name: "hetznercloud-api-token", Usage: "hetzner cloud api token", EnvVars: []string{"WOODPECKER_HETZNERCLOUD_API_TOKEN"}, FilePath: os.Getenv("WOODPECKER_HETZNERCLOUD_API_TOKEN_FILE"), Category: category, }, &cli.StringFlag{ Name: "hetznercloud-location", Value: "nbg1", Usage: "hetzner cloud location", EnvVars: []string{"WOODPECKER_HETZNERCLOUD_LOCATION"}, Category: category, }, &cli.StringFlag{ Name: "hetznercloud-server-type", Value: "cx11", Usage: "hetzner cloud server type", EnvVars: []string{"WOODPECKER_HETZNERCLOUD_SERVER_TYPE"}, Category: category, }, &cli.StringSliceFlag{ Name: "hetznercloud-ssh-keys", Usage: "names of hetzner cloud ssh keys", EnvVars: []string{"WOODPECKER_HETZNERCLOUD_SSH_KEYS"}, Category: category, }, &cli.StringFlag{ Name: "hetznercloud-user-data", Usage: "hetzner cloud userdata template", EnvVars: []string{"WOODPECKER_HETZNERCLOUD_USERDATA"}, FilePath: os.Getenv("WOODPECKER_HETZNERCLOUD_USERDATA_FILE"), Category: category, }, &cli.StringFlag{ Name: "hetznercloud-image", Value: "ubuntu-22.04", Usage: "hetzner cloud image", EnvVars: []string{"WOODPECKER_HETZNERCLOUD_IMAGE"}, Category: category, }, &cli.StringSliceFlag{ Name: "hetznercloud-labels", Usage: "hetzner cloud server labels", EnvVars: []string{"WOODPECKER_HETZNERCLOUD_LABELS"}, Category: category, }, &cli.StringSliceFlag{ Name: "hetznercloud-firewalls", Usage: "names of hetzner cloud firewalls", EnvVars: []string{"WOODPECKER_HETZNERCLOUD_FIREWALLS"}, Category: category, }, &cli.StringSliceFlag{ Name: "hetznercloud-networks", Usage: "names of hetzner cloud networks", EnvVars: []string{"WOODPECKER_HETZNERCLOUD_NETWORKS"}, Category: category, }, &cli.BoolFlag{ Name: "hetznercloud-public-ipv4-enable", Value: true, Usage: "enables public ipv4 network for agents", EnvVars: []string{"WOODPECKER_HETZNERCLOUD_PUBLIC_IPV4_ENABLE"}, Category: category, }, &cli.BoolFlag{ Name: "hetznercloud-public-ipv6-enable", Value: true, Usage: "enables public ipv6 network for agents", EnvVars: []string{"WOODPECKER_HETZNERCLOUD_PUBLIC_IPV6_ENABLE"}, Category: category, }, }
Functions ¶
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func (*Provider) DeployAgent ¶
func (*Provider) ListDeployedAgentNames ¶
func (*Provider) RemoveAgent ¶
Click to show internal directories.
Click to hide internal directories.