package swarmopts
import "github.com/docker/cli/opts/swarmopts"
Index ¶
- func ConvertPortToPortConfig( port nat.Port, portBindings map[nat.Port][]nat.PortBinding, ) ([]swarm.PortConfig, error)
- type ConfigOpt
- func (o *ConfigOpt) Set(value string) error
- func (o *ConfigOpt) String() string
- func (*ConfigOpt) Type() string
- func (o *ConfigOpt) Value() []*swarm.ConfigReference
- type PortOpt
- func (p *PortOpt) Set(value string) error
- func (p *PortOpt) String() string
- func (*PortOpt) Type() string
- func (p *PortOpt) Value() []swarm.PortConfig
- type SecretOpt
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 ¶
Set a new config value
func (*ConfigOpt) String ¶
String returns a string repr of this option
func (*ConfigOpt) Type ¶
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 ¶
Set a new port value
func (*PortOpt) String ¶
String returns a string repr of this option
func (*PortOpt) Type ¶
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 ¶
Set a new secret value
func (*SecretOpt) String ¶
String returns a string repr of this option
func (*SecretOpt) Type ¶
Type returns the type of this option
func (*SecretOpt) Value ¶
func (o *SecretOpt) Value() []*swarm.SecretReference
Value returns the secret requests
Source Files ¶
- 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.