version

package
v0.0.0-...-957c8b8 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUnknownError

func NewUnknownError(v *semver.Version) error

Types

type Manager

type Manager struct {
	Operands []*Operand
	// contains filtered or unexported fields
}

func ManagerFromEnv

func ManagerFromEnv(envName string) (*Manager, error)

func ManagerFromJson

func ManagerFromJson(jsonStr string) (*Manager, error)

func (*Manager) Json

func (m *Manager) Json() (string, error)

func (*Manager) Latest

func (m *Manager) Latest() Operand

Latest returns the most recent Operand release

func (*Manager) Log

func (m *Manager) Log(log logr.Logger)

func (*Manager) Oldest

func (m *Manager) Oldest() Operand

func (*Manager) WithRef

func (m *Manager) WithRef(version string) (Operand, error)

type Operand

type Operand struct {
	UpstreamVersion   *semver.Version `json:"upstream-version,omitempty"`
	DownstreamVersion *semver.Version `json:"downstream-version,omitempty"`
	Image             string          `json:"image"`
	CVE               bool            `json:"cve"`
	Deprecated        bool            `json:"deprecated"`
}

func (Operand) EQ

func (o Operand) EQ(other Operand) bool

func (Operand) GTE

func (o Operand) GTE(other Operand) bool

func (Operand) LT

func (o Operand) LT(other Operand) bool

func (Operand) Ref

func (o Operand) Ref() string

Ref returns the string used to represent this Operand in the Infinispan CR spec and status

func (Operand) String

func (o Operand) String() string

func (Operand) Validate

func (o Operand) Validate() error

type UnknownError

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

func (*UnknownError) Error

func (e *UnknownError) Error() string

Jump to

Keyboard shortcuts

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