Documentation ¶
Index ¶
- 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
- 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
- type 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)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCertificateREST ¶
func NewDeviceDiscoveryREST ¶
func NewDeviceTokenREST ¶
func NewNetworkInterfaceREST ¶
func NewUserAccountREST ¶
func NewWifiNetworkREST ¶
Types ¶
type DeviceREST ¶
type DeviceREST struct { registryrest.TableConvertor // contains filtered or unexported fields }
func NewDeviceREST ¶
func NewDeviceREST(deviceName, storageDir string, scheme *runtime.Scheme) (*DeviceREST, error)
func (*DeviceREST) Destroy ¶
func (r *DeviceREST) Destroy()
func (*DeviceREST) Get ¶
func (r *DeviceREST) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)
func (*DeviceREST) GetSingularName ¶
func (r *DeviceREST) GetSingularName() string
func (*DeviceREST) List ¶
func (r *DeviceREST) List(ctx context.Context, options *metainternalversion.ListOptions) (runtime.Object, error)
func (*DeviceREST) NamespaceScoped ¶
func (r *DeviceREST) NamespaceScoped() bool
func (*DeviceREST) New ¶
func (r *DeviceREST) New() runtime.Object
func (*DeviceREST) NewList ¶
func (r *DeviceREST) NewList() runtime.Object
func (*DeviceREST) Store ¶
func (r *DeviceREST) Store() storage.Interface
func (*DeviceREST) Update ¶
func (r *DeviceREST) Update(ctx context.Context, name string, objInfo registryrest.UpdatedObjectInfo, createValidation registryrest.ValidateObjectFunc, updateValidation registryrest.ValidateObjectUpdateFunc, forceAllowCreate bool, options *metav1.UpdateOptions) (runtime.Object, bool, error)
func (*DeviceREST) Watch ¶
func (r *DeviceREST) Watch(ctx context.Context, options *metainternalversion.ListOptions) (w watch.Interface, err error)
type DeviceShutdownREST ¶
type DeviceShutdownREST struct {
// contains filtered or unexported fields
}
func NewDeviceShutdownREST ¶
func NewDeviceShutdownREST(deviceName string, deviceStore storage.Interface, k3sDir string) *DeviceShutdownREST
func (*DeviceShutdownREST) Create ¶
func (r *DeviceShutdownREST) Create(ctx context.Context, obj runtime.Object, createValidation registryrest.ValidateObjectFunc, options *metav1.CreateOptions) (runtime.Object, error)
Create initiates an orderly shutdown of this node.
func (*DeviceShutdownREST) Destroy ¶
func (r *DeviceShutdownREST) Destroy()
func (*DeviceShutdownREST) New ¶
func (r *DeviceShutdownREST) New() runtime.Object
type REST ¶
type REST struct { registryrest.TableConvertor // contains filtered or unexported fields }
func (*REST) Create ¶
func (r *REST) Create(ctx context.Context, obj runtime.Object, createValidation registryrest.ValidateObjectFunc, options *metav1.CreateOptions) (runtime.Object, error)
func (*REST) Delete ¶
func (r *REST) Delete(ctx context.Context, key string, deleteValidation registryrest.ValidateObjectFunc, options *metav1.DeleteOptions) (runtime.Object, bool, error)
func (*REST) GetSingularName ¶
func (*REST) List ¶
func (r *REST) List(ctx context.Context, options *metainternalversion.ListOptions) (runtime.Object, error)
func (*REST) NamespaceScoped ¶
func (*REST) Update ¶
func (r *REST) Update(ctx context.Context, key string, objInfo registryrest.UpdatedObjectInfo, createValidation registryrest.ValidateObjectFunc, updateValidation registryrest.ValidateObjectUpdateFunc, forceAllowCreate bool, options *metav1.UpdateOptions) (runtime.Object, bool, error)
func (*REST) Watch ¶
func (r *REST) Watch(ctx context.Context, options *metainternalversion.ListOptions) (w watch.Interface, err error)
Click to show internal directories.
Click to hide internal directories.