config

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Card

type Card struct {
	// 路径
	Path string `default:"${DRONE_CARD_PATH=/dev/stdout}" json:"path"`
}

type CardOutput

type CardOutput struct {
	// 地址
	Schema string `json:"schema"`
	// 数据
	Data json.RawMessage `json:"data"`
}

type Proxy

type Proxy struct {
	// 是否开启
	Enabled *bool `default:"true" json:"enabled" yaml:"enabled" xml:"enabled" toml:"enabled"`
	// 主机
	Host string `json:"host" yaml:"host" xml:"host" toml:"host" validate:"required"`
	// 代理类型
	// nolint:lll
	Scheme string `default:"scheme" json:"scheme" yaml:"scheme" xml:"scheme" toml:"scheme" validate:"required,oneof=socks4 socks5 http https"`
	// 目标
	Target string `json:"target" yaml:"target" xml:"target" toml:"target"`
	// 代理认证用户名
	Username string `json:"username" yaml:"username" xml:"username" toml:"username"`
	// 代理认证密码
	Password string `json:"password" yaml:"password" xml:"password" toml:"password"`
}

func (*Proxy) Addr

func (p *Proxy) Addr() (addr string)

Jump to

Keyboard shortcuts

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