dockerhelper

package
v3.7.0-alpha.1+incompa... Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IPV4Range

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

IPV4Range represents a range of ipv4s

func (IPV4Range) Contains

func (r IPV4Range) Contains(aRange IPV4Range) bool

Contains returns whether an IPV4Range is contained within another IPV4Range

type IPV4RangeList

type IPV4RangeList []IPV4Range

IPV4RangeList represents a collection of IPV4Ranges

func (IPV4RangeList) Contains

func (l IPV4RangeList) Contains(r IPV4Range) bool

Contains returns true if the union of the ranges in this list completely contains the given range

func (IPV4RangeList) Len

func (l IPV4RangeList) Len() int

Len returns the length of entries within an IPV4RangeList

func (IPV4RangeList) Less

func (l IPV4RangeList) Less(i, j int) bool

Less returns whether a starting ipv4 at index i within this list, is less than a starting ipv4 at index j within this list

func (IPV4RangeList) Swap

func (l IPV4RangeList) Swap(i, j int)

Swap swaps entries within IPV4RangeList at indices i, and j

type RegistryConfig

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

RegistryConfig contains useful Docker registry information. Built by NewRegistryConfig constructor

func NewRegistryConfig

func NewRegistryConfig(dockerInfo *types.Info) *RegistryConfig

NewRegistryConfig creates a new registry configuration

func (*RegistryConfig) ContainsInsecureRegistryCIDR

func (config *RegistryConfig) ContainsInsecureRegistryCIDR(cidr string) (bool, error)

ContainsInsecureRegistryCIDR returns whether a given CIDR is contained within the bounds of at least one CIDR configured in the Docker insecure registry configuration.

func (*RegistryConfig) HasCustomInsecureRegistryCIDRs

func (config *RegistryConfig) HasCustomInsecureRegistryCIDRs() bool

HasCustomInsecureRegistryCIDRs returns whether the user has any CIDRs configured within the Docker insecure registry configuration. This omits the inferred loopback entry in place implicitly by Docker.

Jump to

Keyboard shortcuts

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