docker

package
v0.0.0-...-ab7f80e Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// LabelStackNamespace is the label used to track stack resources
	LabelStackNamespace = "com.docker.stack.namespace"

	// LabelInternalNamespace is the label used tu track hypercloud internal resources
	LabelInternalNamespace = "com.hypercloud.internal"
)

Variables

This section is empty.

Functions

func NewHealthCheck

func NewHealthCheck(d *Client) server.HealthCheckHandlerFunc

NewHealthCheck handle

func NewProxy

func NewProxy(host string, base string) (*httputil.ReverseProxy, error)

NewProxy Docker

Types

type Client

type Client struct {
	*client.Client
}

Client struct

func NewEnvClient

func NewEnvClient() (*Client, error)

NewEnvClient initializes a new API client based on environment variables.

func (*Client) StackList

func (c *Client) StackList(ctx context.Context) ([]Stack, error)

StackList returns the list of stacks.

type Stack

type Stack struct {
	Name     string
	Services int
}

Stack represents a stack.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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