Versions in this module Expand all Collapse all v0 v0.3.0 May 20, 2024 Changes in this version + func NewCertificateREST(scheme *runtime.Scheme, caCert []byte) *certificateREST + func NewDeviceDiscoveryREST(store storage.Interface) *deviceDiscoveryREST + func NewDeviceTokenREST(dir string, scheme *runtime.Scheme, deviceName string) (*deviceTokenREST, error) + func NewNetworkInterfaceREST(store storage.Interface) *networkInterfaceREST + func NewUserAccountREST(dir string, scheme *runtime.Scheme) (*userAccountREST, error) + func NewWifiNetworkREST(wifi *wifi.Wifi, scheme *runtime.Scheme) *wifiNetworkREST + func NewWifiPasswordREST(dir string, scheme *runtime.Scheme) (*wifiPasswordREST, error) + type DeviceREST struct + func NewDeviceREST(deviceName, storageDir string, scheme *runtime.Scheme) (*DeviceREST, error) + func (r *DeviceREST) Destroy() + func (r *DeviceREST) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error) + func (r *DeviceREST) GetSingularName() string + func (r *DeviceREST) List(ctx context.Context, options *metainternalversion.ListOptions) (runtime.Object, error) + func (r *DeviceREST) NamespaceScoped() bool + func (r *DeviceREST) New() runtime.Object + func (r *DeviceREST) NewList() runtime.Object + func (r *DeviceREST) Store() storage.Interface + func (r *DeviceREST) Update(ctx context.Context, name string, objInfo registryrest.UpdatedObjectInfo, ...) (runtime.Object, bool, error) + func (r *DeviceREST) Watch(ctx context.Context, options *metainternalversion.ListOptions) (w watch.Interface, err error) + type DeviceShutdownREST struct + func NewDeviceShutdownREST(deviceName string, deviceStore storage.Interface, k3sDir string) *DeviceShutdownREST + func (r *DeviceShutdownREST) Create(ctx context.Context, obj runtime.Object, ...) (runtime.Object, error) + func (r *DeviceShutdownREST) Destroy() + func (r *DeviceShutdownREST) New() runtime.Object + type REST struct + func NewREST(res resource.Resource, store storage.Interface) *REST + func (r *REST) Create(ctx context.Context, obj runtime.Object, ...) (runtime.Object, error) + func (r *REST) Delete(ctx context.Context, key string, ...) (runtime.Object, bool, error) + func (r *REST) Destroy() + func (r *REST) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error) + func (r *REST) GetSingularName() string + func (r *REST) List(ctx context.Context, options *metainternalversion.ListOptions) (runtime.Object, error) + func (r *REST) NamespaceScoped() bool + func (r *REST) New() runtime.Object + func (r *REST) NewList() runtime.Object + func (r *REST) Store() storage.Interface + func (r *REST) Update(ctx context.Context, key string, objInfo registryrest.UpdatedObjectInfo, ...) (runtime.Object, bool, error) + func (r *REST) Watch(ctx context.Context, options *metainternalversion.ListOptions) (w watch.Interface, err error)