tracker

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 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 InstalledArtifacts

type InstalledArtifacts struct {
	Containerd              string
	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) MarkContainerd

func (tracker *Tracker) MarkContainerd(source string)

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