rest

package
v0.0.0-...-04a223e Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCertificateREST

func NewCertificateREST(scheme *runtime.Scheme, caCert []byte) *certificateREST

func NewDeviceDiscoveryREST

func NewDeviceDiscoveryREST(store storage.Interface) *deviceDiscoveryREST

func NewDeviceTokenREST

func NewDeviceTokenREST(dir string, scheme *runtime.Scheme, deviceName string) (*deviceTokenREST, error)

func NewNetworkInterfaceREST

func NewNetworkInterfaceREST(store storage.Interface) *networkInterfaceREST

func NewUserAccountREST

func NewUserAccountREST(dir string, scheme *runtime.Scheme) (*userAccountREST, error)

func NewWifiNetworkREST

func NewWifiNetworkREST(wifi *wifi.Wifi, scheme *runtime.Scheme) *wifiNetworkREST

func NewWifiPasswordREST

func NewWifiPasswordREST(dir string, scheme *runtime.Scheme) (*wifiPasswordREST, error)

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 (*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

Create initiates an orderly shutdown of this node.

func (*DeviceShutdownREST) Destroy

func (r *DeviceShutdownREST) Destroy()

func (*DeviceShutdownREST) New

type REST

type REST struct {
	registryrest.TableConvertor
	// contains filtered or unexported fields
}

func NewREST

func NewREST(res resource.Resource, store storage.Interface) *REST

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) Destroy

func (r *REST) Destroy()

func (*REST) Get

func (r *REST) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)

func (*REST) GetSingularName

func (r *REST) GetSingularName() string

func (*REST) List

func (*REST) NamespaceScoped

func (r *REST) NamespaceScoped() bool

func (*REST) New

func (r *REST) New() runtime.Object

func (*REST) NewList

func (r *REST) NewList() runtime.Object

func (*REST) Store

func (r *REST) Store() storage.Interface

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)

Jump to

Keyboard shortcuts

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