Documentation ¶
Index ¶
- Variables
- func NewEnvClient(ctx context.Context, logger log.Logger) (docker.CommonAPIClient, error)
- type ServerVersion
- func (v ServerVersion) Compare(o ServerVersion) int
- func (v ServerVersion) EQ(o ServerVersion) bool
- func (v ServerVersion) GE(o ServerVersion) bool
- func (v ServerVersion) GT(o ServerVersion) bool
- func (v ServerVersion) GTE(o ServerVersion) bool
- func (v ServerVersion) LE(o ServerVersion) bool
- func (v ServerVersion) LT(o ServerVersion) bool
- func (v ServerVersion) LTE(o ServerVersion) bool
- func (v ServerVersion) MarshalJSON() ([]byte, error)
- func (v ServerVersion) NE(o ServerVersion) bool
- func (v ServerVersion) Release() string
- func (v ServerVersion) String() string
- func (v *ServerVersion) UnmarshalJSON(data []byte) (err error)
- func (v ServerVersion) Validate() error
- func (v ServerVersion) ValidateRelease() error
- type Timever
- func (v Timever) Compare(o Timever) int
- func (v Timever) EQ(o Timever) bool
- func (v Timever) GE(o Timever) bool
- func (v Timever) GT(o Timever) bool
- func (v Timever) GTE(o Timever) bool
- func (v Timever) LE(o Timever) bool
- func (v Timever) LT(o Timever) bool
- func (v Timever) LTE(o Timever) bool
- func (v Timever) MarshalJSON() ([]byte, error)
- func (v Timever) NE(o Timever) bool
- func (v Timever) String() string
- func (v *Timever) UnmarshalJSON(data []byte) (err error)
- func (v Timever) Validate() error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TimeverRegexp = regexp.MustCompile(`^([0-9]{2})\.((?:0[1-9])|(?:1[0-2]))\.([0-9]+)(?:-(.+))?$`) ErrTimeverInvalidYear = errors.New("invalid year value") ErrTimeverInvalidMonth = errors.New("invalid month value") ErrTimeverEmptyVersion = errors.New("version string empty") ErrTimeverParse = errors.New("invalid Timever version string") )
View Source
var ( DockerReleaseCE = "ce" DockerReleaseEE = "ee" ErrServerVersionInvalidRelease = errors.New("release must be one of ce or ee") )
Functions ¶
func NewEnvClient ¶
Types ¶
type ServerVersion ¶ added in v0.19.2
func MustParseServerVersion ¶ added in v0.19.2
func MustParseServerVersion(s string) ServerVersion
func NewServerVersion ¶ added in v0.19.2
func NewServerVersion(s string) (vp *ServerVersion, err error)
func ParseServerVersion ¶ added in v0.19.2
func ParseServerVersion(s string) (ServerVersion, error)
func (ServerVersion) Compare ¶ added in v0.19.2
func (v ServerVersion) Compare(o ServerVersion) int
func (ServerVersion) EQ ¶ added in v0.19.2
func (v ServerVersion) EQ(o ServerVersion) bool
func (ServerVersion) GE ¶ added in v0.19.2
func (v ServerVersion) GE(o ServerVersion) bool
func (ServerVersion) GT ¶ added in v0.19.2
func (v ServerVersion) GT(o ServerVersion) bool
func (ServerVersion) GTE ¶ added in v0.19.2
func (v ServerVersion) GTE(o ServerVersion) bool
func (ServerVersion) LE ¶ added in v0.19.2
func (v ServerVersion) LE(o ServerVersion) bool
func (ServerVersion) LT ¶ added in v0.19.2
func (v ServerVersion) LT(o ServerVersion) bool
func (ServerVersion) LTE ¶ added in v0.19.2
func (v ServerVersion) LTE(o ServerVersion) bool
func (ServerVersion) MarshalJSON ¶ added in v0.19.2
func (v ServerVersion) MarshalJSON() ([]byte, error)
func (ServerVersion) NE ¶ added in v0.19.2
func (v ServerVersion) NE(o ServerVersion) bool
func (ServerVersion) Release ¶ added in v0.19.2
func (v ServerVersion) Release() string
func (ServerVersion) String ¶ added in v0.19.2
func (v ServerVersion) String() string
func (*ServerVersion) UnmarshalJSON ¶ added in v0.19.2
func (v *ServerVersion) UnmarshalJSON(data []byte) (err error)
func (ServerVersion) Validate ¶ added in v0.19.2
func (v ServerVersion) Validate() error
func (ServerVersion) ValidateRelease ¶ added in v0.19.2
func (v ServerVersion) ValidateRelease() error
type Timever ¶ added in v0.19.2
func MustTimeverParse ¶ added in v0.19.2
MustTimeverParse is like Parse but panics if the version cannot be parsed.
func NewTimever ¶ added in v0.19.2
NewTimever is an alias for TimeverParse and returns a pointer, parses version string and returns a validated Timever or error
func TimeverParse ¶ added in v0.19.2
TimeverParse parses version string and returns a validated Timever or error
func (Timever) Compare ¶ added in v0.19.2
Compare compares Timevers v to o: -1 == v is less than o 0 == v is equal to o 1 == v is greater than o
func (Timever) MarshalJSON ¶ added in v0.19.2
MarshalJSON implements the encoding/json.Marshaler interface.
func (*Timever) UnmarshalJSON ¶ added in v0.19.2
UnmarshalJSON implements the encoding/json.Unmarshaler interface.
Click to show internal directories.
Click to hide internal directories.