run

package
v1.28.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2025 License: Apache-2.0 Imports: 44 Imported by: 0

Documentation

Overview

Package run implements the "instance run" subcommand of the operator

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmd

func NewCmd() *cobra.Command

NewCmd creates the "instance run" subcommand

Types

type OSDB added in v1.25.4

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

OSDB is a set of known OS releases

func (*OSDB) Get added in v1.25.4

func (db *OSDB) Get(version string) (OSEntry, bool)

Get gets the OS entry for a known version

func (*OSDB) Register added in v1.25.4

func (db *OSDB) Register(entry OSEntry)

Register adds a new know OS entry

type OSEntry added in v1.25.4

type OSEntry struct {
	// Version identifies the operating system version. This is the same
	// as the "VERSION" field in the "/etc/osrelease" file.
	Version string `json:"version"`

	// DeprecatedFrom is the end-of-life date of this OS version
	DeprecatedFrom time.Time `json:"deprecatedFrom"`

	// SupportedUntil is the end of the OS version long-term-support period,
	// as defined.
	SupportedUntil time.Time `json:"supportedUntil"`
}

OSEntry represents an OS version.

Between the release date and DeprecatedFrom, the OS Version is **supported** and **not deprecated**.

Between DeprecatedFrom and SupportedUntil, the OS Version is **supported** and **deprecated**.

After SupportedUntil, the OS Version is **not supported** and **deprecated**.

func (*OSEntry) IsDeprecated added in v1.25.4

func (e *OSEntry) IsDeprecated(now time.Time) bool

IsDeprecated checks if the release is deprecated.

func (*OSEntry) IsSupported added in v1.25.4

func (e *OSEntry) IsSupported(now time.Time) bool

IsSupported checks if the release is supported.

Directories

Path Synopsis
Package lifecycle contains the code to run and manage the lifecycle of a postgres Instance
Package lifecycle contains the code to run and manage the lifecycle of a postgres Instance

Jump to

Keyboard shortcuts

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