Documentation ¶
Overview ¶
Package componentstatus provides interfaces and implementation for retrieving cluster component status.
Index ¶
- func ToConditionStatus(s probe.Result) api.ConditionStatus
- type REST
- func (rs *REST) Get(ctx genericapirequest.Context, name string, options *metav1.GetOptions) (runtime.Object, error)
- func (rs *REST) List(ctx genericapirequest.Context, options *metainternalversion.ListOptions) (runtime.Object, error)
- func (rs *REST) New() runtime.Object
- func (rs *REST) NewList() runtime.Object
- func (r *REST) ShortNames() []string
- type Server
- type ServerStatus
- type ValidatorFn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToConditionStatus ¶
func ToConditionStatus(s probe.Result) api.ConditionStatus
Types ¶
type REST ¶
func NewStorage ¶
NewStorage returns a new REST.
func (*REST) Get ¶
func (rs *REST) Get(ctx genericapirequest.Context, name string, options *metav1.GetOptions) (runtime.Object, error)
func (*REST) List ¶
func (rs *REST) List(ctx genericapirequest.Context, options *metainternalversion.ListOptions) (runtime.Object, error)
Returns the list of component status. Note that the label and field are both ignored. Note that this call doesn't support labels or selectors.
func (*REST) ShortNames ¶ added in v1.6.0
ShortNames implements the ShortNamesProvider interface. Returns a list of short names for a resource.
type Server ¶ added in v1.6.0
type Server struct { Addr string Port int Path string EnableHTTPS bool TLSConfig *tls.Config Validate ValidatorFn Prober httpprober.HTTPProber Once sync.Once }
type ServerStatus ¶ added in v1.6.0
type ServerStatus struct { // +optional Component string `json:"component,omitempty"` // +optional Health string `json:"health,omitempty"` // +optional HealthCode probe.Result `json:"healthCode,omitempty"` // +optional Msg string `json:"msg,omitempty"` // +optional Err string `json:"err,omitempty"` }
type ValidatorFn ¶ added in v1.6.0
Click to show internal directories.
Click to hide internal directories.