rancherd

package
v0.2.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultDataDir is the location of all state for rancherd
	DefaultDataDir = "/var/lib/rancher/rancherd"
	// DefaultConfigFile is the location of the rancherd config
	DefaultConfigFile = "/etc/rancher/rancherd/config.yaml"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Force      bool
	DataDir    string
	ConfigPath string
}

type Rancherd

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

func New

func New(cfg Config) *Rancherd

func (*Rancherd) DoneStamp

func (r *Rancherd) DoneStamp() string

func (*Rancherd) Info

func (r *Rancherd) Info(ctx context.Context) error

func (*Rancherd) Run

func (r *Rancherd) Run(ctx context.Context) error

func (*Rancherd) Upgrade

func (r *Rancherd) Upgrade(ctx context.Context, upgradeConfig UpgradeConfig) error

func (*Rancherd) WorkingStamp

func (r *Rancherd) WorkingStamp() string

type UpgradeConfig

type UpgradeConfig struct {
	RancherVersion    string
	KubernetesVersion string
	RancherOSVersion  string
	Force             bool
}

Jump to

Keyboard shortcuts

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