Help us shape the future of Go! Take the 2026 Go Developer Survey

models

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeviceConfigurationResponse

type DeviceConfigurationResponse struct {

	// device configuration
	DeviceConfiguration commonmodel.DeviceConfigurationMessage `json:"device-configuration,omitempty"`

	// Exposes the error message generated at the backend when there is an error (example HTTP code 500).
	Message string `json:"message,omitempty"`
}

DeviceConfigurationResponse device configuration response

swagger:model device-configuration-response

func (*DeviceConfigurationResponse) ContextValidate

func (m *DeviceConfigurationResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this device configuration response based on context it is used

func (*DeviceConfigurationResponse) MarshalBinary

func (m *DeviceConfigurationResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DeviceConfigurationResponse) UnmarshalBinary

func (m *DeviceConfigurationResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DeviceConfigurationResponse) Validate

func (m *DeviceConfigurationResponse) Validate(formats strfmt.Registry) error

Validate validates this device configuration response

type DeviceRegistrationStatusResponse

type DeviceRegistrationStatusResponse struct {

	// Exposes the error message generated at the backend when there is an error (example HTTP code 500).
	Message string `json:"message,omitempty"`

	// Namespace the device should be or was finally placed during registration.
	Namespace string `json:"namespace,omitempty"`

	// Returns the device registration status, which can be one of the following {registered, unregistered, unknown}.
	Status string `json:"status,omitempty"`
}

DeviceRegistrationStatusResponse device registration status response

swagger:model device-registration-status-response

func (*DeviceRegistrationStatusResponse) ContextValidate

func (m *DeviceRegistrationStatusResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this device registration status response based on context it is used

func (*DeviceRegistrationStatusResponse) MarshalBinary

func (m *DeviceRegistrationStatusResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DeviceRegistrationStatusResponse) UnmarshalBinary

func (m *DeviceRegistrationStatusResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DeviceRegistrationStatusResponse) Validate

Validate validates this device registration status response

type Error

type Error struct {

	// Exposes the error message generated at the backend when there is an error (example HTTP code 500).
	// Required: true
	Message *string `json:"message"`
}

Error error

swagger:model error

func (*Error) ContextValidate

func (m *Error) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this error based on context it is used

func (*Error) MarshalBinary

func (m *Error) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Error) UnmarshalBinary

func (m *Error) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Error) Validate

func (m *Error) Validate(formats strfmt.Registry) error

Validate validates this error

Jump to

Keyboard shortcuts

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