Documentation
¶
Index ¶
- func APIVersion(ctx context.Context) string
- func FromEnv(ctx context.Context) context.Context
- func Join(ctx context.Context, uri string) string
- func LessThan(v, other string) bool
- func Negotiate(ctx context.Context, srv string) context.Context
- func WithAPIVersion(ctx context.Context, version string) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func APIVersion ¶
APIVersion gets the API version from the passed in context If no version is set then an empty string will be returned.
func FromEnv ¶
FromEnv sets the API version to use from the DOCKER_API_VERSION environment variable This is like how the Docker CLI sets a specific API version.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.