Documentation ¶
Index ¶
- Constants
- type Boot
- type CPU
- type ComponentMetricsConfiguration
- func (m *ComponentMetricsConfiguration) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *ComponentMetricsConfiguration) MarshalBinary() ([]byte, error)
- func (m *ComponentMetricsConfiguration) UnmarshalBinary(b []byte) error
- func (m *ComponentMetricsConfiguration) Validate(formats strfmt.Registry) error
- type ConfigmapList
- type ContainerMetrics
- type DataConfiguration
- type DataPath
- type DeviceConfiguration
- type DeviceConfigurationMessage
- func (m *DeviceConfigurationMessage) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *DeviceConfigurationMessage) MarshalBinary() ([]byte, error)
- func (m *DeviceConfigurationMessage) UnmarshalBinary(b []byte) error
- func (m *DeviceConfigurationMessage) Validate(formats strfmt.Registry) error
- type Disk
- type EnrolmentInfo
- type EnrolmentInfoFeatures
- type EventInfo
- type Gpu
- type HardwareInfo
- type HardwareProfileConfiguration
- func (m *HardwareProfileConfiguration) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *HardwareProfileConfiguration) MarshalBinary() ([]byte, error)
- func (m *HardwareProfileConfiguration) UnmarshalBinary(b []byte) error
- func (m *HardwareProfileConfiguration) Validate(formats strfmt.Registry) error
- type Heartbeat
- type HeartbeatConfiguration
- func (m *HeartbeatConfiguration) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *HeartbeatConfiguration) MarshalBinary() ([]byte, error)
- func (m *HeartbeatConfiguration) UnmarshalBinary(b []byte) error
- func (m *HeartbeatConfiguration) Validate(formats strfmt.Registry) error
- type HostDevice
- type ImageRegistries
- type Interface
- type IoPerf
- type LogsCollectionInformation
- func (m *LogsCollectionInformation) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *LogsCollectionInformation) MarshalBinary() ([]byte, error)
- func (m *LogsCollectionInformation) UnmarshalBinary(b []byte) error
- func (m *LogsCollectionInformation) Validate(formats strfmt.Registry) error
- type LogsCollectionInformationSyslogConfig
- func (m *LogsCollectionInformationSyslogConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *LogsCollectionInformationSyslogConfig) MarshalBinary() ([]byte, error)
- func (m *LogsCollectionInformationSyslogConfig) UnmarshalBinary(b []byte) error
- func (m *LogsCollectionInformationSyslogConfig) Validate(formats strfmt.Registry) error
- type Memory
- type Message
- type MessageResponse
- type Metrics
- type MetricsAllowList
- type MetricsConfiguration
- type MetricsReceiverConfiguration
- func (m *MetricsReceiverConfiguration) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *MetricsReceiverConfiguration) MarshalBinary() ([]byte, error)
- func (m *MetricsReceiverConfiguration) UnmarshalBinary(b []byte) error
- func (m *MetricsReceiverConfiguration) Validate(formats strfmt.Registry) error
- type MetricsRetention
- type Mount
- type OsInformation
- type RegistrationInfo
- type RegistrationResponse
- type S3StorageConfiguration
- func (m *S3StorageConfiguration) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *S3StorageConfiguration) MarshalBinary() ([]byte, error)
- func (m *S3StorageConfiguration) UnmarshalBinary(b []byte) error
- func (m *S3StorageConfiguration) Validate(formats strfmt.Registry) error
- type Secret
- type SecretList
- type StorageConfiguration
- type SystemVendor
- type UpgradeStatus
- type Workload
- type WorkloadList
- type WorkloadStatus
Constants ¶
const ( // EventInfoTypeInfo captures enum value "info" EventInfoTypeInfo string = "info" // EventInfoTypeWarn captures enum value "warn" EventInfoTypeWarn string = "warn" )
const ( // HardwareProfileConfigurationScopeFull captures enum value "full" HardwareProfileConfigurationScopeFull string = "full" // HardwareProfileConfigurationScopeDelta captures enum value "delta" HardwareProfileConfigurationScopeDelta string = "delta" )
const ( // HeartbeatStatusUp captures enum value "up" HeartbeatStatusUp string = "up" // HeartbeatStatusDegraded captures enum value "degraded" HeartbeatStatusDegraded string = "degraded" )
const ( // MessageTypeConnectionDashStatus captures enum value "connection-status" MessageTypeConnectionDashStatus string = "connection-status" // MessageTypeCommand captures enum value "command" MessageTypeCommand string = "command" // MessageTypeEvent captures enum value "event" MessageTypeEvent string = "event" // MessageTypeData captures enum value "data" MessageTypeData string = "data" )
const ( // UpgradeStatusLastUpgradeStatusSucceeded captures enum value "succeeded" UpgradeStatusLastUpgradeStatusSucceeded string = "succeeded" // UpgradeStatusLastUpgradeStatusFailed captures enum value "failed" UpgradeStatusLastUpgradeStatusFailed string = "failed" )
const ( // WorkloadStatusStatusDeploying captures enum value "deploying" WorkloadStatusStatusDeploying string = "deploying" // WorkloadStatusStatusRunning captures enum value "running" WorkloadStatusStatusRunning string = "running" // WorkloadStatusStatusCrashed captures enum value "crashed" WorkloadStatusStatusCrashed string = "crashed" // WorkloadStatusStatusStopped captures enum value "stopped" WorkloadStatusStatusStopped string = "stopped" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Boot ¶
type Boot struct { // current boot mode CurrentBootMode string `json:"current_boot_mode,omitempty"` // pxe interface PxeInterface string `json:"pxe_interface,omitempty"` }
Boot boot
swagger:model boot
func (*Boot) ContextValidate ¶ added in v0.2.0
ContextValidate validates this boot based on context it is used
func (*Boot) MarshalBinary ¶
MarshalBinary interface implementation
func (*Boot) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type CPU ¶
type CPU struct { // architecture Architecture string `json:"architecture,omitempty"` // count Count int64 `json:"count,omitempty"` // flags Flags []string `json:"flags"` // frequency Frequency float64 `json:"frequency,omitempty"` // model name ModelName string `json:"model_name,omitempty"` }
CPU cpu
swagger:model cpu
func (*CPU) ContextValidate ¶ added in v0.2.0
ContextValidate validates this cpu based on context it is used
func (*CPU) MarshalBinary ¶
MarshalBinary interface implementation
func (*CPU) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type ComponentMetricsConfiguration ¶ added in v0.2.0
type ComponentMetricsConfiguration struct { // allow list AllowList *MetricsAllowList `json:"allow_list,omitempty"` // When true, turns metrics collection off. False by default. Disabled bool `json:"disabled,omitempty"` // Interval(in seconds) to scrape metrics endpoint. Interval int32 `json:"interval,omitempty"` }
ComponentMetricsConfiguration Device component's metrics gathering configuration. Used by the system (aka node-exporter) and data transfer services.
swagger:model component-metrics-configuration
func (*ComponentMetricsConfiguration) ContextValidate ¶ added in v0.2.0
func (m *ComponentMetricsConfiguration) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this component metrics configuration based on the context it is used
func (*ComponentMetricsConfiguration) MarshalBinary ¶ added in v0.2.0
func (m *ComponentMetricsConfiguration) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ComponentMetricsConfiguration) UnmarshalBinary ¶ added in v0.2.0
func (m *ComponentMetricsConfiguration) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ConfigmapList ¶
type ConfigmapList []string
ConfigmapList List of configmaps used by the workload
swagger:model configmap-list
func (ConfigmapList) ContextValidate ¶ added in v0.2.0
ContextValidate validates this configmap list based on context it is used
type ContainerMetrics ¶
type ContainerMetrics struct { // disabled Disabled bool `json:"disabled,omitempty"` // Path to use when retrieving metrics Path string `json:"path,omitempty"` // Port to use when retrieve the metrics Port int32 `json:"port,omitempty"` }
ContainerMetrics Metrics container configuration
swagger:model container-metrics
func (*ContainerMetrics) ContextValidate ¶ added in v0.2.0
ContextValidate validates this container metrics based on context it is used
func (*ContainerMetrics) MarshalBinary ¶
func (m *ContainerMetrics) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ContainerMetrics) UnmarshalBinary ¶
func (m *ContainerMetrics) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type DataConfiguration ¶
type DataConfiguration struct { // egress Egress []*DataPath `json:"egress"` // ingress Ingress []*DataPath `json:"ingress"` }
DataConfiguration Configuration for data transfer
swagger:model data-configuration
func (*DataConfiguration) ContextValidate ¶ added in v0.2.0
ContextValidate validate this data configuration based on the context it is used
func (*DataConfiguration) MarshalBinary ¶
func (m *DataConfiguration) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DataConfiguration) UnmarshalBinary ¶
func (m *DataConfiguration) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type DataPath ¶
type DataPath struct { // Path in the workload container Source string `json:"source,omitempty"` // Path in the control plane storage Target string `json:"target,omitempty"` }
DataPath Device-to-control plane paths mapping
swagger:model data-path
func (*DataPath) ContextValidate ¶ added in v0.2.0
ContextValidate validates this data path based on context it is used
func (*DataPath) MarshalBinary ¶
MarshalBinary interface implementation
func (*DataPath) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type DeviceConfiguration ¶
type DeviceConfiguration struct { // heartbeat Heartbeat *HeartbeatConfiguration `json:"heartbeat,omitempty"` // log collection LogCollection map[string]LogsCollectionInformation `json:"log-collection,omitempty"` // metrics Metrics *MetricsConfiguration `json:"metrics,omitempty"` // mounts Mounts []*Mount `json:"mounts"` // os Os *OsInformation `json:"os,omitempty"` // storage Storage *StorageConfiguration `json:"storage,omitempty"` }
DeviceConfiguration device configuration
swagger:model device-configuration
func (*DeviceConfiguration) ContextValidate ¶ added in v0.2.0
ContextValidate validate this device configuration based on the context it is used
func (*DeviceConfiguration) MarshalBinary ¶
func (m *DeviceConfiguration) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DeviceConfiguration) UnmarshalBinary ¶
func (m *DeviceConfiguration) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type DeviceConfigurationMessage ¶
type DeviceConfigurationMessage struct { // ansible playbook AnsiblePlaybook string `json:"ansible_playbook,omitempty"` // configuration Configuration *DeviceConfiguration `json:"configuration,omitempty"` // Device identifier DeviceID string `json:"device_id,omitempty"` // secrets Secrets SecretList `json:"secrets,omitempty"` // version Version string `json:"version,omitempty"` // workloads Workloads WorkloadList `json:"workloads,omitempty"` // Defines the interval in seconds between the attempts to evaluate the workloads status and restart those that failed // Minimum: > 0 WorkloadsMonitoringInterval int64 `json:"workloads_monitoring_interval,omitempty"` }
DeviceConfigurationMessage device configuration message
swagger:model device-configuration-message
func (*DeviceConfigurationMessage) ContextValidate ¶ added in v0.2.0
func (m *DeviceConfigurationMessage) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this device configuration message based on the context it is used
func (*DeviceConfigurationMessage) MarshalBinary ¶
func (m *DeviceConfigurationMessage) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DeviceConfigurationMessage) UnmarshalBinary ¶
func (m *DeviceConfigurationMessage) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Disk ¶
type Disk struct { // bootable Bootable bool `json:"bootable,omitempty"` // by-id is the World Wide Number of the device which guaranteed to be unique for every storage device ByID string `json:"by_id,omitempty"` // by-path is the shortest physical path to the device ByPath string `json:"by_path,omitempty"` // drive type DriveType string `json:"drive_type,omitempty"` // hctl Hctl string `json:"hctl,omitempty"` // Determine the disk's unique identifier which is the by-id field if it exists and fallback to the by-path field otherwise ID string `json:"id,omitempty"` // io perf IoPerf *IoPerf `json:"io_perf,omitempty"` // Whether the disk appears to be an installation media or not IsInstallationMedia bool `json:"is_installation_media,omitempty"` // model Model string `json:"model,omitempty"` // name Name string `json:"name,omitempty"` // path Path string `json:"path,omitempty"` // serial Serial string `json:"serial,omitempty"` // size bytes SizeBytes int64 `json:"size_bytes,omitempty"` // smart Smart string `json:"smart,omitempty"` // vendor Vendor string `json:"vendor,omitempty"` // wwn Wwn string `json:"wwn,omitempty"` }
Disk disk
swagger:model disk
func (*Disk) ContextValidate ¶ added in v0.2.0
ContextValidate validate this disk based on the context it is used
func (*Disk) MarshalBinary ¶
MarshalBinary interface implementation
func (*Disk) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type EnrolmentInfo ¶ added in v0.1.0
type EnrolmentInfo struct { // features Features *EnrolmentInfoFeatures `json:"features,omitempty"` // target namespace TargetNamespace *string `json:"target_namespace,omitempty"` }
EnrolmentInfo enrolment info
swagger:model enrolment-info
func (*EnrolmentInfo) ContextValidate ¶ added in v0.2.0
ContextValidate validate this enrolment info based on the context it is used
func (*EnrolmentInfo) MarshalBinary ¶ added in v0.1.0
func (m *EnrolmentInfo) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*EnrolmentInfo) UnmarshalBinary ¶ added in v0.1.0
func (m *EnrolmentInfo) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type EnrolmentInfoFeatures ¶ added in v0.1.0
type EnrolmentInfoFeatures struct { // hardware Hardware *HardwareInfo `json:"hardware,omitempty"` // model name ModelName string `json:"modelName,omitempty"` }
EnrolmentInfoFeatures enrolment info features
swagger:model EnrolmentInfoFeatures
func (*EnrolmentInfoFeatures) ContextValidate ¶ added in v0.2.0
ContextValidate validate this enrolment info features based on the context it is used
func (*EnrolmentInfoFeatures) MarshalBinary ¶ added in v0.1.0
func (m *EnrolmentInfoFeatures) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*EnrolmentInfoFeatures) UnmarshalBinary ¶ added in v0.1.0
func (m *EnrolmentInfoFeatures) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type EventInfo ¶
type EventInfo struct { // Message describe the event which has occured. Message string `json:"message,omitempty"` // Reason is single word description of the subject of the event. Reason string `json:"reason,omitempty"` // Either 'info' or 'warn', which reflect the importance of event. // Enum: [info warn] Type string `json:"type,omitempty"` }
EventInfo event info
swagger:model event-info
func (*EventInfo) ContextValidate ¶ added in v0.2.0
ContextValidate validates this event info based on context it is used
func (*EventInfo) MarshalBinary ¶
MarshalBinary interface implementation
func (*EventInfo) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Gpu ¶
type Gpu struct { // Device address (for example "0000:00:02.0") Address string `json:"address,omitempty"` // ID of the device (for example "3ea0") DeviceID string `json:"device_id,omitempty"` // Product name of the device (for example "UHD Graphics 620 (Whiskey Lake)") Name string `json:"name,omitempty"` // The name of the device vendor (for example "Intel Corporation") Vendor string `json:"vendor,omitempty"` // ID of the vendor (for example "8086") VendorID string `json:"vendor_id,omitempty"` }
Gpu gpu
swagger:model gpu
func (*Gpu) ContextValidate ¶ added in v0.2.0
ContextValidate validates this gpu based on context it is used
func (*Gpu) MarshalBinary ¶
MarshalBinary interface implementation
func (*Gpu) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type HardwareInfo ¶
type HardwareInfo struct { // boot Boot *Boot `json:"boot,omitempty"` // cpu CPU *CPU `json:"cpu,omitempty"` // disks Disks []*Disk `json:"disks"` // gpus Gpus []*Gpu `json:"gpus"` // host devices HostDevices []*HostDevice `json:"host_devices"` // hostname Hostname string `json:"hostname,omitempty"` // interfaces Interfaces []*Interface `json:"interfaces"` // memory Memory *Memory `json:"memory,omitempty"` // mounts Mounts []*Mount `json:"mounts"` // system vendor SystemVendor *SystemVendor `json:"system_vendor,omitempty"` }
HardwareInfo Hardware information
swagger:model hardware-info
func (*HardwareInfo) ContextValidate ¶ added in v0.2.0
ContextValidate validate this hardware info based on the context it is used
func (*HardwareInfo) MarshalBinary ¶
func (m *HardwareInfo) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*HardwareInfo) UnmarshalBinary ¶
func (m *HardwareInfo) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type HardwareProfileConfiguration ¶
type HardwareProfileConfiguration struct { // include Include bool `json:"include,omitempty"` // scope // Enum: [full delta] Scope string `json:"scope,omitempty"` }
HardwareProfileConfiguration hardware profile configuration
swagger:model hardware-profile-configuration
func (*HardwareProfileConfiguration) ContextValidate ¶ added in v0.2.0
func (m *HardwareProfileConfiguration) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this hardware profile configuration based on context it is used
func (*HardwareProfileConfiguration) MarshalBinary ¶
func (m *HardwareProfileConfiguration) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*HardwareProfileConfiguration) UnmarshalBinary ¶
func (m *HardwareProfileConfiguration) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Heartbeat ¶
type Heartbeat struct { // Events produced by device worker. Events []*EventInfo `json:"events"` // hardware Hardware *HardwareInfo `json:"hardware,omitempty"` // status // Enum: [up degraded] Status string `json:"status,omitempty"` // upgrade Upgrade *UpgradeStatus `json:"upgrade,omitempty"` // version Version string `json:"version,omitempty"` // workloads Workloads []*WorkloadStatus `json:"workloads"` }
Heartbeat heartbeat
swagger:model heartbeat
func (*Heartbeat) ContextValidate ¶ added in v0.2.0
ContextValidate validate this heartbeat based on the context it is used
func (*Heartbeat) MarshalBinary ¶
MarshalBinary interface implementation
func (*Heartbeat) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type HeartbeatConfiguration ¶
type HeartbeatConfiguration struct { // hardware profile HardwareProfile *HardwareProfileConfiguration `json:"hardware_profile,omitempty"` // period seconds PeriodSeconds int64 `json:"period_seconds,omitempty"` }
HeartbeatConfiguration heartbeat configuration
swagger:model heartbeat-configuration
func (*HeartbeatConfiguration) ContextValidate ¶ added in v0.2.0
func (m *HeartbeatConfiguration) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this heartbeat configuration based on the context it is used
func (*HeartbeatConfiguration) MarshalBinary ¶
func (m *HeartbeatConfiguration) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*HeartbeatConfiguration) UnmarshalBinary ¶
func (m *HeartbeatConfiguration) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type HostDevice ¶ added in v0.2.0
type HostDevice struct { // Type of the device DeviceType string `json:"device_type,omitempty"` // Group id Gid int64 `json:"gid,omitempty"` // Major of the device Major int64 `json:"major,omitempty"` // Minor of the device Minor int64 `json:"minor,omitempty"` // Path of the device Path string `json:"path,omitempty"` // Owner id UID int64 `json:"uid,omitempty"` }
HostDevice host device
swagger:model host_device
func (*HostDevice) ContextValidate ¶ added in v0.2.0
ContextValidate validates this host device based on context it is used
func (*HostDevice) MarshalBinary ¶ added in v0.2.0
func (m *HostDevice) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*HostDevice) UnmarshalBinary ¶ added in v0.2.0
func (m *HostDevice) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ImageRegistries ¶
type ImageRegistries struct { // Image registries authfile created by executing `podman login` or `docker login` (i.e. ~/.docker/config.json). https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/#log-in-to-docker-hub describes how the file can be created and how it is structured. AuthFile string `json:"authFile,omitempty"` }
ImageRegistries Image registries configuration
swagger:model image-registries
func (*ImageRegistries) ContextValidate ¶ added in v0.2.0
ContextValidate validates this image registries based on context it is used
func (*ImageRegistries) MarshalBinary ¶
func (m *ImageRegistries) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ImageRegistries) UnmarshalBinary ¶
func (m *ImageRegistries) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Interface ¶
type Interface struct { // biosdevname Biosdevname string `json:"biosdevname,omitempty"` // client id ClientID string `json:"client_id,omitempty"` // flags Flags []string `json:"flags"` // has carrier HasCarrier bool `json:"has_carrier,omitempty"` // ipv4 addresses IPV4Addresses []string `json:"ipv4_addresses"` // ipv6 addresses IPV6Addresses []string `json:"ipv6_addresses"` // mac address MacAddress string `json:"mac_address,omitempty"` // mtu Mtu int64 `json:"mtu,omitempty"` // name Name string `json:"name,omitempty"` // product Product string `json:"product,omitempty"` // speed mbps SpeedMbps int64 `json:"speed_mbps,omitempty"` // vendor Vendor string `json:"vendor,omitempty"` }
Interface interface
swagger:model interface
func (*Interface) ContextValidate ¶ added in v0.2.0
ContextValidate validates this interface based on context it is used
func (*Interface) MarshalBinary ¶
MarshalBinary interface implementation
func (*Interface) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type IoPerf ¶
type IoPerf struct { // 99th percentile of fsync duration in milliseconds SyncDuration int64 `json:"sync_duration,omitempty"` }
IoPerf io perf
swagger:model io_perf
func (*IoPerf) ContextValidate ¶ added in v0.2.0
ContextValidate validates this io perf based on context it is used
func (*IoPerf) MarshalBinary ¶
MarshalBinary interface implementation
func (*IoPerf) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type LogsCollectionInformation ¶
type LogsCollectionInformation struct { // buffer size BufferSize int32 `json:"buffer_size,omitempty"` // kind Kind string `json:"kind,omitempty"` // syslog config SyslogConfig *LogsCollectionInformationSyslogConfig `json:"syslog_config,omitempty"` }
LogsCollectionInformation Log collection information
swagger:model logs-collection-information
func (*LogsCollectionInformation) ContextValidate ¶ added in v0.2.0
func (m *LogsCollectionInformation) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this logs collection information based on the context it is used
func (*LogsCollectionInformation) MarshalBinary ¶
func (m *LogsCollectionInformation) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*LogsCollectionInformation) UnmarshalBinary ¶
func (m *LogsCollectionInformation) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type LogsCollectionInformationSyslogConfig ¶
type LogsCollectionInformationSyslogConfig struct { // address Address string `json:"address,omitempty"` // protocol Protocol string `json:"protocol,omitempty"` }
LogsCollectionInformationSyslogConfig logs collection information syslog config
swagger:model LogsCollectionInformationSyslogConfig
func (*LogsCollectionInformationSyslogConfig) ContextValidate ¶ added in v0.2.0
func (m *LogsCollectionInformationSyslogConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this logs collection information syslog config based on context it is used
func (*LogsCollectionInformationSyslogConfig) MarshalBinary ¶
func (m *LogsCollectionInformationSyslogConfig) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*LogsCollectionInformationSyslogConfig) UnmarshalBinary ¶
func (m *LogsCollectionInformationSyslogConfig) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Memory ¶
type Memory struct { // physical bytes PhysicalBytes int64 `json:"physical_bytes,omitempty"` // usable bytes UsableBytes int64 `json:"usable_bytes,omitempty"` }
Memory memory
swagger:model memory
func (*Memory) ContextValidate ¶ added in v0.2.0
ContextValidate validates this memory based on context it is used
func (*Memory) MarshalBinary ¶
MarshalBinary interface implementation
func (*Memory) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Message ¶
type Message struct { // Content Content interface{} `json:"content,omitempty"` // directive Directive string `json:"directive,omitempty"` // message id MessageID string `json:"message_id,omitempty"` // metadata Metadata interface{} `json:"metadata,omitempty"` // response to ResponseTo string `json:"response_to,omitempty"` // sent // Format: date-time Sent strfmt.DateTime `json:"sent,omitempty"` // type // Enum: [connection-status command event data] Type string `json:"type,omitempty"` // version Version int64 `json:"version,omitempty"` }
Message message
swagger:model message
func (*Message) ContextValidate ¶ added in v0.2.0
ContextValidate validates this message based on context it is used
func (*Message) MarshalBinary ¶
MarshalBinary interface implementation
func (*Message) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type MessageResponse ¶
type MessageResponse struct { // Content Content interface{} `json:"content,omitempty"` // directive Directive string `json:"directive,omitempty"` // message id MessageID string `json:"message_id,omitempty"` }
MessageResponse message response
swagger:model message-response
func (*MessageResponse) ContextValidate ¶ added in v0.2.0
ContextValidate validates this message response based on context it is used
func (*MessageResponse) MarshalBinary ¶
func (m *MessageResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*MessageResponse) UnmarshalBinary ¶
func (m *MessageResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Metrics ¶
type Metrics struct { // allow list AllowList *MetricsAllowList `json:"allow_list,omitempty"` // containers Containers map[string]ContainerMetrics `json:"containers,omitempty"` // Interval(in seconds) to scrape metrics endpoint. Interval int32 `json:"interval,omitempty"` // Path to use when retrieving metrics Path string `json:"path,omitempty"` // port Port int32 `json:"port,omitempty"` }
Metrics Metrics endpoint configuration
swagger:model metrics
func (*Metrics) ContextValidate ¶ added in v0.2.0
ContextValidate validate this metrics based on the context it is used
func (*Metrics) MarshalBinary ¶
MarshalBinary interface implementation
func (*Metrics) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type MetricsAllowList ¶
type MetricsAllowList struct { // names Names []string `json:"names"` }
MetricsAllowList Specification of system metrics to be collected
swagger:model metrics-allow-list
func (*MetricsAllowList) ContextValidate ¶ added in v0.2.0
ContextValidate validates this metrics allow list based on context it is used
func (*MetricsAllowList) MarshalBinary ¶
func (m *MetricsAllowList) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*MetricsAllowList) UnmarshalBinary ¶
func (m *MetricsAllowList) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type MetricsConfiguration ¶
type MetricsConfiguration struct { // data transfer DataTransfer *ComponentMetricsConfiguration `json:"data-transfer,omitempty"` // receiver Receiver *MetricsReceiverConfiguration `json:"receiver,omitempty"` // retention Retention *MetricsRetention `json:"retention,omitempty"` // system System *ComponentMetricsConfiguration `json:"system,omitempty"` }
MetricsConfiguration Defines metrics configuration for the device
swagger:model metrics-configuration
func (*MetricsConfiguration) ContextValidate ¶ added in v0.2.0
ContextValidate validate this metrics configuration based on the context it is used
func (*MetricsConfiguration) MarshalBinary ¶
func (m *MetricsConfiguration) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*MetricsConfiguration) UnmarshalBinary ¶
func (m *MetricsConfiguration) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type MetricsReceiverConfiguration ¶ added in v0.1.0
type MetricsReceiverConfiguration struct { // ca cert CaCert string `json:"caCert,omitempty"` // request num samples RequestNumSamples int64 `json:"request_num_samples,omitempty"` // timeout seconds TimeoutSeconds int64 `json:"timeout_seconds,omitempty"` // url URL string `json:"url,omitempty"` }
MetricsReceiverConfiguration metrics receiver configuration
swagger:model metrics-receiver-configuration
func (*MetricsReceiverConfiguration) ContextValidate ¶ added in v0.2.0
func (m *MetricsReceiverConfiguration) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this metrics receiver configuration based on context it is used
func (*MetricsReceiverConfiguration) MarshalBinary ¶ added in v0.1.0
func (m *MetricsReceiverConfiguration) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*MetricsReceiverConfiguration) UnmarshalBinary ¶ added in v0.1.0
func (m *MetricsReceiverConfiguration) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type MetricsRetention ¶
type MetricsRetention struct { // Maximum time in hours metrics data files should kept on the device MaxHours int32 `json:"max_hours,omitempty"` // Maximum size of metrics stored on disk MaxMib int32 `json:"max_mib,omitempty"` }
MetricsRetention Defines metrics data retention limits
swagger:model metrics-retention
func (*MetricsRetention) ContextValidate ¶ added in v0.2.0
ContextValidate validates this metrics retention based on context it is used
func (*MetricsRetention) MarshalBinary ¶
func (m *MetricsRetention) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*MetricsRetention) UnmarshalBinary ¶
func (m *MetricsRetention) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Mount ¶ added in v0.2.0
type Mount struct { // path of the device to be mounted Device string `json:"device,omitempty"` // destination directory Directory string `json:"directory,omitempty"` // mount options Options string `json:"options,omitempty"` // type of the mount Type string `json:"type,omitempty"` }
Mount mount
swagger:model mount
func (*Mount) ContextValidate ¶ added in v0.2.0
ContextValidate validates this mount based on context it is used
func (*Mount) MarshalBinary ¶ added in v0.2.0
MarshalBinary interface implementation
func (*Mount) UnmarshalBinary ¶ added in v0.2.0
UnmarshalBinary interface implementation
type OsInformation ¶
type OsInformation struct { // automatically upgrade the OS image AutomaticallyUpgrade bool `json:"automatically_upgrade,omitempty"` // the last commit ID CommitID string `json:"commit_id,omitempty"` // the URL of the hosted commits web server HostedObjectsURL string `json:"hosted_objects_url,omitempty"` }
OsInformation OS lifecycle information
swagger:model os-information
func (*OsInformation) ContextValidate ¶ added in v0.2.0
ContextValidate validates this os information based on context it is used
func (*OsInformation) MarshalBinary ¶
func (m *OsInformation) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*OsInformation) UnmarshalBinary ¶
func (m *OsInformation) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RegistrationInfo ¶
type RegistrationInfo struct { // Certificate Signing Request to be signed by flotta-operator CA CertificateRequest string `json:"certificate_request,omitempty"` // hardware Hardware *HardwareInfo `json:"hardware,omitempty"` }
RegistrationInfo registration info
swagger:model registration-info
func (*RegistrationInfo) ContextValidate ¶ added in v0.2.0
ContextValidate validate this registration info based on the context it is used
func (*RegistrationInfo) MarshalBinary ¶
func (m *RegistrationInfo) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RegistrationInfo) UnmarshalBinary ¶
func (m *RegistrationInfo) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RegistrationResponse ¶
type RegistrationResponse struct { // Client certificate to be used in future operations Certificate string `json:"certificate,omitempty"` }
RegistrationResponse registration response
swagger:model registration-response
func (*RegistrationResponse) ContextValidate ¶ added in v0.2.0
ContextValidate validates this registration response based on context it is used
func (*RegistrationResponse) MarshalBinary ¶
func (m *RegistrationResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RegistrationResponse) UnmarshalBinary ¶
func (m *RegistrationResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type S3StorageConfiguration ¶
type S3StorageConfiguration struct { // aws access key id AwsAccessKeyID string `json:"aws_access_key_id,omitempty"` // aws ca bundle AwsCaBundle string `json:"aws_ca_bundle,omitempty"` // aws secret access key AwsSecretAccessKey string `json:"aws_secret_access_key,omitempty"` // bucket host BucketHost string `json:"bucket_host,omitempty"` // bucket name BucketName string `json:"bucket_name,omitempty"` // bucket port BucketPort int32 `json:"bucket_port,omitempty"` // bucket region BucketRegion string `json:"bucket_region,omitempty"` }
S3StorageConfiguration s3 storage configuration
swagger:model s3-storage-configuration
func (*S3StorageConfiguration) ContextValidate ¶ added in v0.2.0
func (m *S3StorageConfiguration) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this s3 storage configuration based on context it is used
func (*S3StorageConfiguration) MarshalBinary ¶
func (m *S3StorageConfiguration) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*S3StorageConfiguration) UnmarshalBinary ¶
func (m *S3StorageConfiguration) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Secret ¶
type Secret struct { // The secret's data section in JSON format Data string `json:"data,omitempty"` // Name of the secret Name string `json:"name,omitempty"` }
Secret secret
swagger:model secret
func (*Secret) ContextValidate ¶ added in v0.2.0
ContextValidate validates this secret based on context it is used
func (*Secret) MarshalBinary ¶
MarshalBinary interface implementation
func (*Secret) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type SecretList ¶
type SecretList []*Secret
SecretList List of secrets used by the workloads
swagger:model secret-list
func (SecretList) ContextValidate ¶ added in v0.2.0
ContextValidate validate this secret list based on the context it is used
type StorageConfiguration ¶
type StorageConfiguration struct { // s3 S3 *S3StorageConfiguration `json:"s3,omitempty"` }
StorageConfiguration storage configuration
swagger:model storage-configuration
func (*StorageConfiguration) ContextValidate ¶ added in v0.2.0
ContextValidate validate this storage configuration based on the context it is used
func (*StorageConfiguration) MarshalBinary ¶
func (m *StorageConfiguration) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*StorageConfiguration) UnmarshalBinary ¶
func (m *StorageConfiguration) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type SystemVendor ¶
type SystemVendor struct { // manufacturer Manufacturer string `json:"manufacturer,omitempty"` // product name ProductName string `json:"product_name,omitempty"` // serial number SerialNumber string `json:"serial_number,omitempty"` // Whether the machine appears to be a virtual machine or not Virtual bool `json:"virtual,omitempty"` }
SystemVendor system vendor
swagger:model system_vendor
func (*SystemVendor) ContextValidate ¶ added in v0.2.0
ContextValidate validates this system vendor based on context it is used
func (*SystemVendor) MarshalBinary ¶
func (m *SystemVendor) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SystemVendor) UnmarshalBinary ¶
func (m *SystemVendor) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type UpgradeStatus ¶
type UpgradeStatus struct { // current commit ID CurrentCommitID string `json:"current_commit_ID,omitempty"` // last upgrade status // Enum: [succeeded failed] LastUpgradeStatus string `json:"last_upgrade_status,omitempty"` // last upgrade time LastUpgradeTime string `json:"last_upgrade_time,omitempty"` }
UpgradeStatus Upgrade status
swagger:model upgrade-status
func (*UpgradeStatus) ContextValidate ¶ added in v0.2.0
ContextValidate validates this upgrade status based on context it is used
func (*UpgradeStatus) MarshalBinary ¶
func (m *UpgradeStatus) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*UpgradeStatus) UnmarshalBinary ¶
func (m *UpgradeStatus) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Workload ¶
type Workload struct { // Workload Annotations Annotations map[string]string `json:"annotations,omitempty"` // configmaps Configmaps ConfigmapList `json:"configmaps,omitempty"` // data Data *DataConfiguration `json:"data,omitempty"` // image registries ImageRegistries *ImageRegistries `json:"imageRegistries,omitempty"` // Workload labels Labels map[string]string `json:"labels,omitempty"` // Log collection target for this workload LogCollection string `json:"log_collection,omitempty"` // metrics Metrics *Metrics `json:"metrics,omitempty"` // Name of the workload Name string `json:"name,omitempty"` // Namespace of the workload Namespace string `json:"namespace,omitempty"` // specification Specification string `json:"specification,omitempty"` }
Workload workload
swagger:model workload
func (*Workload) ContextValidate ¶ added in v0.2.0
ContextValidate validate this workload based on the context it is used
func (*Workload) MarshalBinary ¶
MarshalBinary interface implementation
func (*Workload) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type WorkloadList ¶
type WorkloadList []*Workload
WorkloadList List of workloads deployed to the device
swagger:model workload-list
func (WorkloadList) ContextValidate ¶ added in v0.2.0
ContextValidate validate this workload list based on the context it is used
type WorkloadStatus ¶
type WorkloadStatus struct { // last data upload // Format: date-time LastDataUpload strfmt.DateTime `json:"last_data_upload,omitempty"` // name Name string `json:"name,omitempty"` // status // Enum: [deploying running crashed stopped] Status string `json:"status,omitempty"` }
WorkloadStatus workload status
swagger:model workload-status
func (*WorkloadStatus) ContextValidate ¶ added in v0.2.0
ContextValidate validates this workload status based on context it is used
func (*WorkloadStatus) MarshalBinary ¶
func (m *WorkloadStatus) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*WorkloadStatus) UnmarshalBinary ¶
func (m *WorkloadStatus) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
Source Files ¶
- boot.go
- component_metrics_configuration.go
- configmap_list.go
- container_metrics.go
- cpu.go
- data_configuration.go
- data_path.go
- device_configuration.go
- device_configuration_message.go
- disk.go
- enrolment_info.go
- event_info.go
- gpu.go
- hardware_info.go
- hardware_profile_configuration.go
- heartbeat.go
- heartbeat_configuration.go
- host_device.go
- image_registries.go
- interface.go
- io_perf.go
- logs_collection_information.go
- memory.go
- message.go
- message_response.go
- metrics.go
- metrics_allow_list.go
- metrics_configuration.go
- metrics_receiver_configuration.go
- metrics_retention.go
- mount.go
- os_information.go
- registration_info.go
- registration_response.go
- s3_storage_configuration.go
- secret.go
- secret_list.go
- storage_configuration.go
- system_vendor.go
- upgrade_status.go
- workload.go
- workload_list.go
- workload_status.go