Documentation ¶
Index ¶
- Constants
- Variables
- func CopyCertsToTempDir(dir string, certsMap map[string][]byte) error
- func EdgeDeviceSetConfig(name string) *v1alpha1.EdgeDeviceSet
- func EdgeworkloadDeviceId(name string, device string, image string) *v1alpha1.EdgeWorkload
- func GetKubeConfig() (*rest.Config, error)
- func NewClient() (mgmtv1alpha1.ManagementV1alpha1Interface, error)
- func NewEdgeDeviceSet(client mgmtv1alpha1.ManagementV1alpha1Interface, deviceSetName string) (*edgeDeviceSet, error)
- func NewEdgeWorkload(client mgmtv1alpha1.ManagementV1alpha1Interface) (*edgeWorkload, error)
- type EdgeDevice
- type EdgeDeviceSet
- type EdgeWorkload
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 EdgeDeviceSetConfig ¶
func EdgeDeviceSetConfig(name string) *v1alpha1.EdgeDeviceSet
func EdgeworkloadDeviceId ¶
func EdgeworkloadDeviceId(name string, device string, image string) *v1alpha1.EdgeWorkload
func GetKubeConfig ¶
func NewClient ¶
func NewClient() (mgmtv1alpha1.ManagementV1alpha1Interface, 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) }
Click to show internal directories.
Click to hide internal directories.