Documentation
¶
Index ¶
- Constants
- Variables
- func AddStackLabel(stack string, labels types.Labels) map[string]string
- func Build(ctx context.Context, dockerClient client.APIClient, project types.Project, ...) error
- func ConvertConfigs(stack string, configs types.Configs) ([]swarm.ConfigSpec, error)
- func ConvertNetworks(stack string, networks types.Networks, serviceNetworks map[string]struct{}) (map[string]client.NetworkCreateOptions, []string)
- func ConvertSecrets(stack string, secrets types.Secrets) ([]swarm.SecretSpec, error)
- func ConvertServices(ctx context.Context, apiClient client.APIClient, stack string, ...) (map[string]swarm.ServiceSpec, error)
- func Deploy(ctx context.Context, dockerClient client.APIClient, project types.Project, ...) error
- func GetManagerClient(ctx context.Context, servers map[string]vault.Server) (client.APIClient, string, error)
- func GetServicesDeclaredNetworks(serviceConfigs types.Services) map[string]struct{}
- func HasBuildConfig(project types.Project) bool
- func LoadCompose(ctx context.Context, cwd string, paths ...string) (types.Project, error)
- func NewClientSSH(host string, port int, user string, privateKey []byte) (client.APIClient, error)
- func PushImage(ctx context.Context, dockerClient client.APIClient, imageName string, ...) error
- func ScopeName(stack, name string) string
- type BuildOptions
- type DeployOptions
Constants ¶
View Source
const ( LabelNamespace = "com.docker.stack.namespace" LabelImage = "com.docker.stack.image" DefaultNetworkDriver = "overlay" )
View Source
const ( ResolveImageAlways = "always" ResolveImageChanged = "changed" ResolveImageNever = "never" )
Variables ¶
View Source
var ErrManagerNotFound = errors.New("manager not found")
Functions ¶
func ConvertConfigs ¶
func ConvertNetworks ¶
func ConvertSecrets ¶
func ConvertServices ¶
func GetManagerClient ¶
func HasBuildConfig ¶
func LoadCompose ¶
func NewClientSSH ¶
Types ¶
type BuildOptions ¶
Click to show internal directories.
Click to hide internal directories.