resources

package
v0.0.0-...-49dee99 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2022 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EdgeDeviceImage string = "quay.io/project-flotta/edgedevice:cli"
	Namespace       string = "default"
)

Variables

View Source
var (
	CACertsPath = filepath.Join(certsPath, "ca.pem")
)

Functions

func CopyCertsToTempDir

func CopyCertsToTempDir(dir string, certsMap map[string][]byte) error

func EdgeDeviceSetConfig

func EdgeDeviceSetConfig(name string) *v1alpha1.EdgeDeviceSet

func EdgeworkloadDeviceId

func EdgeworkloadDeviceId(name string, device string, image string) *v1alpha1.EdgeWorkload

func GetKubeConfig

func GetKubeConfig() (*rest.Config, error)

func NewEdgeDeviceSet

func NewEdgeDeviceSet(client mgmtv1alpha1.ManagementV1alpha1Interface, deviceSetName string) (*edgeDeviceSet, error)

func NewEdgeWorkload

func NewEdgeWorkload(client mgmtv1alpha1.ManagementV1alpha1Interface) (*edgeWorkload, error)

Types

type EdgeDevice

type EdgeDevice interface {
	GetName() string
	Register(image string, cmds ...string) error
	Unregister() error
	Get() (*v1alpha1.EdgeDevice, error)
	List() (*v1alpha1.EdgeDeviceList, error)
	Remove() error
	Stop() error
	Start() error
	WaitForWorkloadState(string, v1alpha1.EdgeWorkloadPhase) error
}

func NewEdgeDevice

func NewEdgeDevice(fclient mgmtv1alpha1.ManagementV1alpha1Interface, deviceName string) (EdgeDevice, error)

type EdgeDeviceSet

type EdgeDeviceSet interface {
	GetName() string
	Create(set *v1alpha1.EdgeDeviceSet) (*v1alpha1.EdgeDeviceSet, error)
	Get(string) (*v1alpha1.EdgeDeviceSet, error)
	Remove(string) error
	RemoveAll() error
	List() (*v1alpha1.EdgeDeviceSetList, error)
}

type EdgeWorkload

type EdgeWorkload interface {
	Create(*v1alpha1.EdgeWorkload) (*v1alpha1.EdgeWorkload, error)
	Get(string) (*v1alpha1.EdgeWorkload, error)
	Remove(string) error
	RemoveAll() error
	List() (*v1alpha1.EdgeWorkloadList, error)
}

Jump to

Keyboard shortcuts

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