swarmopts

package
v28.1.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2025 License: Apache-2.0 Imports: 11 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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

Jump to

Keyboard shortcuts

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