swarmopts

package
v29.7.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2026 License: Apache-2.0 Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertPortToPortConfig

func ConvertPortToPortConfig(
	portProto network.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

Jump to

Keyboard shortcuts

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