tracker

package
v1.0.17 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clear

func Clear() error

Types

type ContainerdSourceName added in v1.0.5

type ContainerdSourceName string
const (
	ContainerdSourceNone   ContainerdSourceName = "none"
	ContainerdSourceDistro ContainerdSourceName = "distro"
	ContainerdSourceDocker ContainerdSourceName = "docker"
)

func ContainerdSource added in v1.0.5

func ContainerdSource(containerdSource string) (ContainerdSourceName, error)

type InstalledArtifacts

type InstalledArtifacts struct {
	Containerd              ContainerdSourceName
	CniPlugins              bool
	IamAuthenticator        bool
	IamRolesAnywhere        bool
	ImageCredentialProvider bool
	Kubectl                 bool
	Kubelet                 bool
	Ssm                     bool
	Iptables                bool
}

type Tracker

type Tracker struct {
	Artifacts *InstalledArtifacts
}

func GetCurrentState

func GetCurrentState() (*Tracker, error)

GetCurrentState reads the tracker file and returns current state If tracker file does not exist, it creates a new tracker

func GetInstalledArtifacts

func GetInstalledArtifacts() (*Tracker, error)

GetInstalledArtifacts reads the tracker file and returns the current installed artifacts

func (*Tracker) Add

func (tracker *Tracker) Add(componentName string) error

Add adds a components as installed to the tracker

func (*Tracker) Save

func (tracker *Tracker) Save() error

Save() saves the tracker to file

Jump to

Keyboard shortcuts

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