Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Debug bool `envconfig:"DRONE_DEBUG"` Trace bool `envconfig:"DRONE_TRACE"` Client struct { Address string `ignored:"true"` Proto string `envconfig:"DRONE_RPC_PROTO" default:"http"` Host string `envconfig:"DRONE_RPC_HOST" required:"true"` Secret string `envconfig:"DRONE_RPC_SECRET" required:"true"` SkipVerify bool `envconfig:"DRONE_RPC_SKIP_VERIFY"` Dump bool `envconfig:"DRONE_RPC_DUMP_HTTP"` DumpBody bool `envconfig:"DRONE_RPC_DUMP_HTTP_BODY"` } Dashboard struct { Disabled bool `envconfig:"DRONE_UI_DISABLE"` Username string `envconfig:"DRONE_UI_USERNAME"` Password string `envconfig:"DRONE_UI_PASSWORD"` Realm string `envconfig:"DRONE_UI_REALM" default:"MyRealm"` } Server struct { Port string `envconfig:"DRONE_HTTP_BIND" default:":3000"` Proto string `envconfig:"DRONE_HTTP_PROTO"` Host string `envconfig:"DRONE_HTTP_HOST"` Acme bool `envconfig:"DRONE_HTTP_ACME"` } Runner struct { Name string `envconfig:"DRONE_RUNNER_NAME"` Capacity int `envconfig:"DRONE_RUNNER_CAPACITY" default:"2"` Procs int64 `envconfig:"DRONE_RUNNER_MAX_PROCS"` Environ map[string]string `envconfig:"DRONE_RUNNER_ENVIRON"` EnvFile string `envconfig:"DRONE_RUNNER_ENV_FILE"` Secrets map[string]string `envconfig:"DRONE_RUNNER_SECRETS"` Labels map[string]string `envconfig:"DRONE_RUNNER_LABELS"` } Limit struct { Repos []string `envconfig:"DRONE_LIMIT_REPOS"` Events []string `envconfig:"DRONE_LIMIT_EVENTS"` Trusted bool `envconfig:"DRONE_LIMIT_TRUSTED"` } Settings struct { ImageDir string `envconfig:"DRONE_QEMU_IMAGE_DIR"` TempDir string `envconfig:"DRONE_QEMU_TEMP_DIR"` DefaultImage string `envconfig:"DRONE_QEMU_DEFAULT_IMAGE"` } Environ struct { Endpoint string `envconfig:"DRONE_ENV_PLUGIN_ENDPOINT"` Token string `envconfig:"DRONE_ENV_PLUGIN_TOKEN"` SkipVerify bool `envconfig:"DRONE_ENV_PLUGIN_SKIP_VERIFY"` } Secret struct { Endpoint string `envconfig:"DRONE_SECRET_PLUGIN_ENDPOINT"` Token string `envconfig:"DRONE_SECRET_PLUGIN_TOKEN"` SkipVerify bool `envconfig:"DRONE_SECRET_PLUGIN_SKIP_VERIFY"` } Registry struct { Endpoint string `envconfig:"DRONE_REGISTRY_PLUGIN_ENDPOINT"` Token string `envconfig:"DRONE_REGISTRY_PLUGIN_TOKEN"` SkipVerify bool `envconfig:"DRONE_REGISTRY_PLUGIN_SKIP_VERIFY"` } }
Config stores the system configuration.
Click to show internal directories.
Click to hide internal directories.