package swarmopts

import "github.com/docker/cli/opts/swarmopts"

Index

Functions

func ConvertPortToPortConfig

func ConvertPortToPortConfig(
	port nat.Port,
	portBindings map[nat.Port][]nat.PortBinding,
) ([]swarm.PortConfig, error)

ConvertPortToPortConfig converts ports to the swarm type

Types

type ConfigOpt

type ConfigOpt struct {
	// contains filtered or unexported fields
}

ConfigOpt is a Value type for parsing configs

func (*ConfigOpt) Set

func (o *ConfigOpt) Set(value string) error

Set a new config value

func (*ConfigOpt) String

func (o *ConfigOpt) String() string

String returns a string repr of this option

func (*ConfigOpt) Type

func (*ConfigOpt) Type() string

Type returns the type of this option

func (*ConfigOpt) Value

func (o *ConfigOpt) Value() []*swarm.ConfigReference

Value returns the config requests

type PortOpt

type PortOpt struct {
	// contains filtered or unexported fields
}

PortOpt represents a port config in swarm mode.

func (*PortOpt) Set

func (p *PortOpt) Set(value string) error

Set a new port value

func (*PortOpt) String

func (p *PortOpt) String() string

String returns a string repr of this option

func (*PortOpt) Type

func (*PortOpt) Type() string

Type returns the type of this option

func (*PortOpt) Value

func (p *PortOpt) Value() []swarm.PortConfig

Value returns the ports

type SecretOpt

type SecretOpt struct {
	// contains filtered or unexported fields
}

SecretOpt is a Value type for parsing secrets

func (*SecretOpt) Set

func (o *SecretOpt) Set(value string) error

Set a new secret value

func (*SecretOpt) String

func (o *SecretOpt) String() string

String returns a string repr of this option

func (*SecretOpt) Type

func (*SecretOpt) Type() string

Type returns the type of this option

func (*SecretOpt) Value

func (o *SecretOpt) Value() []*swarm.SecretReference

Value returns the secret requests

Source Files

config.go port.go secret.go

Version
v28.1.1+incompatible (latest)
Published
Apr 18, 2025
Platform
linux/amd64
Imports
11 packages
Last checked
2 days ago

Tools for package owners.