Documentation
¶
Index ¶
- Constants
- func DiffSets(lhs, rhs map[string]interface{}) (map[string]interface{}, map[string]interface{})
- func DockerCliFromCtx(ctx context.Context) (*client.Client, error)
- func FetchHTTPConfig(url string, tlsConfig *tls.Config, username, password string) (io.Reader, error)
- func FetchHTTPConfigReadCloser(url string, tlsConfig *tls.Config, username, password string) (io.ReadCloser, error)
- func GetStatefulDir(ctx context.Context) string
- func GetTLSConfig(caCertPath, clientCertPath, clientKeyPath string) (*tls.Config, error)
- func IsIPNetListNotEqu(lhs, rhs []net.IPNet) bool
- func IsUDPAddrNotEqu(spec, curr *net.UDPAddr) bool
- func NewURLReader(url string, options *URLReaderTransportOptions) (io.ReadCloser, error)
- func NormalizeContainerName(containerName string) string
- func ResolvePath(path string) string
- func ServiceNameFromCtx(ctx context.Context) (string, error)
- func SetClientAuthInCtx(ctx context.Context, clientAuth *ClientAuth) context.Context
- func SetDockerCliInCtx(ctx context.Context, cli *client.Client) context.Context
- func SetServiceNameInCtx(ctx context.Context, serviceName string) context.Context
- func SetStatefulDirInCtx(ctx context.Context, statefulDir string) context.Context
- func StatefulDirFromCtx(ctx context.Context) (string, error)
- type ClientAuth
- type CtxKey
- type URLReader
- type URLReaderTransportOptions
Constants ¶
View Source
const FilePathPresumedToBeStdin = "-"
View Source
const FilePathThatIsStdin = "/dev/stdin"
Variables ¶
This section is empty.
Functions ¶
func DiffSets ¶
returns: (added, removed) added is those in lhs but not rhs, removed is those in rhs but not lhs
func FetchHTTPConfig ¶
func FetchHTTPConfig(url string, tlsConfig *tls.Config, username, password string) (io.Reader, error)
FetchHTTPConfig fetches configuration from an HTTP(S) endpoint
func FetchHTTPConfigReadCloser ¶
func FetchHTTPConfigReadCloser(url string, tlsConfig *tls.Config, username, password string) (io.ReadCloser, error)
FetchHTTPConfig fetches configuration from an HTTP(S) endpoint
func GetStatefulDir ¶
func GetTLSConfig ¶
GetTLSConfig creates a TLS configuration from the provided certificate files
func IsIPNetListNotEqu ¶
func IsUDPAddrNotEqu ¶
func NewURLReader ¶
func NewURLReader(url string, options *URLReaderTransportOptions) (io.ReadCloser, error)
func NormalizeContainerName ¶
func ResolvePath ¶
func SetClientAuthInCtx ¶
func SetClientAuthInCtx(ctx context.Context, clientAuth *ClientAuth) context.Context
func SetDockerCliInCtx ¶
func SetServiceNameInCtx ¶
func SetStatefulDirInCtx ¶
Types ¶
type ClientAuth ¶
type ClientAuth struct {
TLSClientCertFile string
TLSClientKeyFile string
TLSTrustedCACertFile string
HTTPBasicAuthUsername string
HTTPBasicAuthPassword string
}
func ClientAuthFromCtx ¶
func ClientAuthFromCtx(ctx context.Context) (*ClientAuth, error)
Click to show internal directories.
Click to hide internal directories.