images

package
v0.0.0-...-4cc801b Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2020 License: Apache-2.0 Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Set

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

Set is an immutable collection of image references without duplicates.

var Empty Set

Empty is a Set with no image references.

func New

func New(ss ...string) (Set, error)

New constructs a Set from some image references.

func (Set) MarshalJSON

func (s Set) MarshalJSON() ([]byte, error)

MarshalJSON encodes this Set as a JSON array of image references.

func (Set) Slice

func (s Set) Slice() []image.Name

Slice returns this set as an unsorted slice of image references.

func (Set) String

func (s Set) String() string

String returns a sorted, string representation of the set.

func (Set) Strings

func (s Set) Strings() []string

Strings returns the image references in the set as a sorted slice of strings.

func (Set) Union

func (s Set) Union(t Set) Set

Union returns the mathematical union of this Set with another Set.

func (*Set) UnmarshalJSON

func (s *Set) UnmarshalJSON(data []byte) error

UnmarshalJSON decodes a JSON array of image references into a Set.

Jump to

Keyboard shortcuts

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