image

package
v0.0.0-...-4308112 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageInfo

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

ImageInfo defines image versions information.

func NewImageInfo

func NewImageInfo(ver version.Number) ImageInfo

NewImageInfo creates an imageInfo.

func (ImageInfo) AgentVersion

func (info ImageInfo) AgentVersion() version.Number

AgentVersion returns the image version.

func (ImageInfo) MarshalJSON

func (info ImageInfo) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (ImageInfo) MarshalYAML

func (info ImageInfo) MarshalYAML() (interface{}, error)

MarshalYAML implements yaml.v2.Marshaller interface.

func (ImageInfo) String

func (info ImageInfo) String() string

String returns string format of the image version.

func (*ImageInfo) UnmarshalJSON

func (info *ImageInfo) UnmarshalJSON(data []byte) (err error)

UnmarshalJSON implements json.Unmarshaler.

func (*ImageInfo) UnmarshalYAML

func (info *ImageInfo) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements the yaml.Unmarshaller interface.

Jump to

Keyboard shortcuts

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