Documentation
¶
Index ¶
- Constants
- type BpfMeta
- type BpfMetadata
- type BpfProgram
- type BpfSpec
- type ConfigurationMap
- type DaemonConfiguration
- type DaemonConfigurationSpec
- func (m *DaemonConfigurationSpec) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *DaemonConfigurationSpec) MarshalBinary() ([]byte, error)
- func (m *DaemonConfigurationSpec) UnmarshalBinary(b []byte) error
- func (m *DaemonConfigurationSpec) Validate(formats strfmt.Registry) error
- type DaemonConfigurationStatus
- func (m *DaemonConfigurationStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *DaemonConfigurationStatus) MarshalBinary() ([]byte, error)
- func (m *DaemonConfigurationStatus) UnmarshalBinary(b []byte) error
- func (m *DaemonConfigurationStatus) Validate(formats strfmt.Registry) error
- type Status
- type StatusResponse
- func (m *StatusResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (in *StatusResponse) DeepCopy() *StatusResponse
- func (in *StatusResponse) DeepCopyInto(out *StatusResponse)
- func (m *StatusResponse) MarshalBinary() ([]byte, error)
- func (m *StatusResponse) UnmarshalBinary(b []byte) error
- func (m *StatusResponse) Validate(formats strfmt.Registry) error
Constants ¶
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 ¶
ContextValidate validate this bpf meta based on the context it is used
func (*BpfMeta) MarshalBinary ¶
MarshalBinary interface implementation
func (*BpfMeta) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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 ¶
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
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 ¶
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
type BpfSpec ¶
type BpfSpec struct {
// programs
Programs []*BpfProgram `json:"programs"`
}
BpfSpec bpf spec
swagger:model BpfSpec
func (*BpfSpec) ContextValidate ¶
ContextValidate validate this bpf spec based on the context it is used
func (*BpfSpec) MarshalBinary ¶
MarshalBinary interface implementation
func (*BpfSpec) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type ConfigurationMap ¶
ConfigurationMap Map of configuration key/value pairs.
swagger:model ConfigurationMap
func (ConfigurationMap) ContextValidate ¶
ContextValidate validates this configuration map based on context it is used
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 ¶
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
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
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
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 ¶
ContextValidate validates this status based on context it is used
func (*Status) MarshalBinary ¶
MarshalBinary interface implementation
func (*Status) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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 ¶
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