models

package
v0.0.0-...-0208d45 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// StatusStateOk captures enum value "Ok"
	StatusStateOk string = "Ok"

	// StatusStateWarning captures enum value "Warning"
	StatusStateWarning string = "Warning"

	// StatusStateFailure captures enum value "Failure"
	StatusStateFailure string = "Failure"

	// StatusStateDisabled captures enum value "Disabled"
	StatusStateDisabled string = "Disabled"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BpfMeta

type BpfMeta struct {

	// bpfmetadata
	Bpfmetadata *BpfMetadata `json:"bpfmetadata,omitempty"`

	// Defines the versioned schema of this representation of an object
	Bpfmetaver string `json:"bpfmetaver,omitempty"`

	// bpfspec
	Bpfspec *BpfSpec `json:"bpfspec,omitempty"`

	// Kind is a string value representing the REST resource this object represents.
	Kind string `json:"kind,omitempty"`
}

BpfMeta bpf meta

swagger:model BpfMeta

func (*BpfMeta) ContextValidate

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

ContextValidate validate this bpf meta based on the context it is used

func (*BpfMeta) MarshalBinary

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

MarshalBinary interface implementation

func (*BpfMeta) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*BpfMeta) Validate

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

Validate validates this bpf meta

type BpfMetadata

type BpfMetadata struct {

	// The name of the bpf program launcher and manager
	Name string `json:"name,omitempty"`
}

BpfMetadata bpf metadata

swagger:model BpfMetadata

func (*BpfMetadata) ContextValidate

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

ContextValidate validates this bpf metadata based on context it is used

func (*BpfMetadata) MarshalBinary

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

MarshalBinary interface implementation

func (*BpfMetadata) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*BpfMetadata) Validate

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

Validate validates this bpf metadata

type BpfProgram

type BpfProgram struct {

	// Command line arguments passed to the bpf program launcher
	Args []string `json:"args"`

	// Command name of the bpf program launcher
	Command string `json:"command,omitempty"`

	// Description of the bpf program
	Description string `json:"description,omitempty"`

	// Name of bpf program
	Name string `json:"name,omitempty"`

	// Launch priority of the bpf program
	Priority int32 `json:"priority,omitempty"`
}

BpfProgram bpf program

swagger:model BpfProgram

func (*BpfProgram) ContextValidate

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

ContextValidate validates this bpf program based on context it is used

func (*BpfProgram) MarshalBinary

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

MarshalBinary interface implementation

func (*BpfProgram) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*BpfProgram) Validate

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

Validate validates this bpf program

type BpfSpec

type BpfSpec struct {

	// programs
	Programs []*BpfProgram `json:"programs"`
}

BpfSpec bpf spec

swagger:model BpfSpec

func (*BpfSpec) ContextValidate

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

ContextValidate validate this bpf spec based on the context it is used

func (*BpfSpec) MarshalBinary

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

MarshalBinary interface implementation

func (*BpfSpec) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*BpfSpec) Validate

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

Validate validates this bpf spec

type ConfigurationMap

type ConfigurationMap map[string]string

ConfigurationMap Map of configuration key/value pairs.

swagger:model ConfigurationMap

func (ConfigurationMap) ContextValidate

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

ContextValidate validates this configuration map based on context it is used

func (ConfigurationMap) Validate

func (m ConfigurationMap) Validate(formats strfmt.Registry) error

Validate validates this configuration map

type DaemonConfiguration

type DaemonConfiguration struct {

	// spec
	Spec *DaemonConfigurationSpec `json:"spec,omitempty"`

	// status
	Status *DaemonConfigurationStatus `json:"status,omitempty"`
}

DaemonConfiguration Response to a daemon configuration request. Example: {"spec":{"options":{}},"status":{"applied":{"options":{}},"daemonConfigurationMap":""}}

swagger:model DaemonConfiguration

func (*DaemonConfiguration) ContextValidate

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

ContextValidate validate this daemon configuration based on the context it is used

func (*DaemonConfiguration) MarshalBinary

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

MarshalBinary interface implementation

func (*DaemonConfiguration) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*DaemonConfiguration) Validate

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

Validate validates this daemon configuration

type DaemonConfigurationSpec

type DaemonConfigurationSpec struct {

	// options
	Options ConfigurationMap `json:"options,omitempty"`
}

DaemonConfigurationSpec The controllable and changeable configuration of the daemon. Example: {"options":{}}

swagger:model DaemonConfigurationSpec

func (*DaemonConfigurationSpec) ContextValidate

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

ContextValidate validate this daemon configuration spec based on the context it is used

func (*DaemonConfigurationSpec) MarshalBinary

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

MarshalBinary interface implementation

func (*DaemonConfigurationSpec) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*DaemonConfigurationSpec) Validate

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

Validate validates this daemon configuration spec

type DaemonConfigurationStatus

type DaemonConfigurationStatus struct {

	// applied
	Applied *DaemonConfigurationSpec `json:"applied,omitempty"`

	// Config map which contains all the active daemon configurations
	DaemonConfigurationMap interface{} `json:"daemonConfigurationMap,omitempty"`

	// immutable
	Immutable ConfigurationMap `json:"immutable,omitempty"`
}

DaemonConfigurationStatus Response to a daemon configuration request. Example: {"applied":{"options":{}},"daemonConfigurationMap":""}

swagger:model DaemonConfigurationStatus

func (*DaemonConfigurationStatus) ContextValidate

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

ContextValidate validate this daemon configuration status based on the context it is used

func (*DaemonConfigurationStatus) MarshalBinary

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

MarshalBinary interface implementation

func (*DaemonConfigurationStatus) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*DaemonConfigurationStatus) Validate

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

Validate validates this daemon configuration status

type Status

type Status struct {

	// Human readable status/error/warning message
	Msg string `json:"msg,omitempty"`

	// State the component is in
	// Enum: [Ok Warning Failure Disabled]
	State string `json:"state,omitempty"`
}

Status Status of an individual component Example: {"msg":"msg","state":"Ok"}

swagger:model Status

func (*Status) ContextValidate

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

ContextValidate validates this status based on context it is used

func (*Status) MarshalBinary

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

MarshalBinary interface implementation

func (*Status) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Status) Validate

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

Validate validates this status

type StatusResponse

type StatusResponse struct {

	// bpflock
	Bpflock *Status `json:"bpflock,omitempty"`

	// List of stale information in the status
	Stale map[string]strfmt.DateTime `json:"stale,omitempty"`
}

StatusResponse Health and status information of daemon Example: {"bpflock":{"msg":"msg","state":"Ok"}}

swagger:model StatusResponse

func (*StatusResponse) ContextValidate

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

ContextValidate validate this status response based on the context it is used

func (*StatusResponse) DeepCopy

func (in *StatusResponse) DeepCopy() *StatusResponse

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StatusResponse.

func (*StatusResponse) DeepCopyInto

func (in *StatusResponse) DeepCopyInto(out *StatusResponse)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*StatusResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*StatusResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*StatusResponse) Validate

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

Validate validates this status response

Jump to

Keyboard shortcuts

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