Documentation ¶
Index ¶
- func DeviceAttachTimeout(val string) time.Duration
- func GetTempSockFile(ctx types.Context) string
- func GetTypePkgPathAndName(i interface{}) string
- func HostName() (string, error)
- func NewBadAdminTokenError(token string) error
- func NewBadFilterErr(filter string, err error) error
- func NewBatchProcessErr(completed interface{}, err error) error
- func NewDriverTypeErr(expectedType, actualType string) error
- func NewMissingInstanceIDError(service string) error
- func NewMissingLocalDevicesError(service string) error
- func NewNotFoundError(resourceID string) error
- func NewPathConfig(ctx types.Context, home, token string) *types.PathConfig
- func NewStore() types.Store
- func NewStoreKeyErr(key string) error
- func NewStoreWithData(data map[string]interface{}) types.Store
- func NewStoreWithVars(vars map[string]string) types.Store
- func NewTTLStore(duration time.Duration, hardLimit bool) types.Store
- func NewUnsupportedForClientTypeError(clientType types.ClientType, op string) error
- func ParseAuthConfig(ctx types.Context, config gofig.Config, fields log.Fields, roots ...string) (*types.AuthConfig, error)
- func ParseKnownHost(ctx types.Context, text string) (*types.TLSKnownHost, error)
- func ParseTLSConfig(ctx types.Context, config gofig.Config, proto string, fields log.Fields, ...) (tlsConfig *types.TLSConfig, tlsErr error)
- func SortByString(strings []string) []string
- func SortVolumeByID(volumes []*types.Volume) []*types.Volume
- func WaitFor(f func() (interface{}, error), timeout time.Duration) (interface{}, bool, error)
- type ByString
- type ByVolumeID
- type LoggingConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeviceAttachTimeout ¶
DeviceAttachTimeout gets the configured device attach timeout.
func GetTempSockFile ¶
GetTempSockFile returns a new sock file in a temp space.
func GetTypePkgPathAndName ¶
func GetTypePkgPathAndName(i interface{}) string
GetTypePkgPathAndName gets ths type and package path of the provided instance.
func NewBadAdminTokenError ¶ added in v0.1.1
NewBadAdminTokenError returns a new ErrBadAdminToken error.
func NewBadFilterErr ¶
NewBadFilterErr returns a new ErrBadFilter error.
func NewBatchProcessErr ¶
NewBatchProcessErr returns a new ErrBatchProcess error.
func NewDriverTypeErr ¶
NewDriverTypeErr returns a new ErrDriverTypeErr error.
func NewMissingInstanceIDError ¶
NewMissingInstanceIDError returns a new ErrMissingInstanceID error.
func NewMissingLocalDevicesError ¶ added in v0.6.0
NewMissingLocalDevicesError returns a new ErrMissingLocalDevices error.
func NewNotFoundError ¶
NewNotFoundError returns a new ErrNotFound error.
func NewPathConfig ¶ added in v0.6.0
func NewPathConfig(ctx types.Context, home, token string) *types.PathConfig
NewPathConfig returns a new path configuration object.
func NewStoreKeyErr ¶
NewStoreKeyErr returns a new ErrStoreKey error.
func NewStoreWithData ¶
NewStoreWithData initializes a new instance of the Store type.
func NewStoreWithVars ¶
NewStoreWithVars initializes a new instance of the Store type.
func NewTTLStore ¶
NewTTLStore initializes a new instance of the Store type, but has a TTL that expires contents after a specific duration. The parameter hardLimit can be set to true to change the TTL from a sliding expiration to a hard limit.
func NewUnsupportedForClientTypeError ¶ added in v0.1.1
func NewUnsupportedForClientTypeError( clientType types.ClientType, op string) error
NewUnsupportedForClientTypeError returns a new ErrUnsupportedForClientType error.
func ParseAuthConfig ¶ added in v0.6.0
func ParseAuthConfig( ctx types.Context, config gofig.Config, fields log.Fields, roots ...string) (*types.AuthConfig, error)
ParseAuthConfig returns a new AuthTokenConfig instance.
func ParseKnownHost ¶ added in v0.6.0
ParseKnownHost parses a known host line that's in the expected format: "host algorithm fingerprint".
func ParseTLSConfig ¶
func ParseTLSConfig( ctx types.Context, config gofig.Config, proto string, fields log.Fields, roots ...string) (tlsConfig *types.TLSConfig, tlsErr error)
ParseTLSConfig returns a new TLS configuration.
func SortVolumeByID ¶
SortVolumeByID sorts the volumes by their IDs.
func WaitFor ¶ added in v0.6.0
WaitFor waits for a lambda to complete or aborts after a specified amount of time. If the function fails to complete in the specified amount of time then the second return value is a boolean false. Otherwise the return value and possible error of the provided lambda are returned.
Types ¶
type ByVolumeID ¶
ByVolumeID implements sort.Interface for []*types.Volume based on the ID field.
func (ByVolumeID) Len ¶
func (a ByVolumeID) Len() int
func (ByVolumeID) Less ¶
func (a ByVolumeID) Less(i, j int) bool
func (ByVolumeID) Swap ¶
func (a ByVolumeID) Swap(i, j int)
type LoggingConfig ¶ added in v0.1.1
type LoggingConfig struct { // Level is the log level. Level log.Level // Stdout is the path to the file to which to log stdout. Stdout string // Stderr is the path to the file to which to log stderr. Stderr string // HTTPRequests is a flag indicating whether or not to log HTTP requests. HTTPRequests bool // HTTPResponses is a flag indicating whether or not to log HTTP responses. HTTPResponses bool }
LoggingConfig is the logging configuration.
func ParseLoggingConfig ¶ added in v0.1.1
func ParseLoggingConfig( config gofig.Config, fields log.Fields, roots ...string) (*LoggingConfig, error)
ParseLoggingConfig returns a new LoggingConfig instance.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package filters is a piece of thievery as the LDAP filter parsing code was lifted serepticiously from https://github.com/tonnerre/go-ldap/blob/master/ldap.go.
|
Package filters is a piece of thievery as the LDAP filter parsing code was lifted serepticiously from https://github.com/tonnerre/go-ldap/blob/master/ldap.go. |