kubernetes: k8s.io/kubernetes/pkg/registry/core/componentstatus Index | Files

package componentstatus

import "k8s.io/kubernetes/pkg/registry/core/componentstatus"

Package componentstatus provides interfaces and implementation for retrieving cluster component status.

Index

Package Files

doc.go rest.go validator.go

func ToConditionStatus Uses

func ToConditionStatus(s probe.Result) api.ConditionStatus

type REST Uses

type REST struct {
    GetServersToValidate func() map[string]*Server
}

func NewStorage Uses

func NewStorage(serverRetriever func() map[string]*Server) *REST

NewStorage returns a new REST.

func (*REST) Get Uses

func (rs *REST) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)

func (*REST) List Uses

func (rs *REST) List(ctx context.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) NamespaceScoped Uses

func (*REST) NamespaceScoped() bool

func (*REST) New Uses

func (rs *REST) New() runtime.Object

func (*REST) NewList Uses

func (rs *REST) NewList() runtime.Object

func (*REST) ShortNames Uses

func (r *REST) ShortNames() []string

ShortNames implements the ShortNamesProvider interface. Returns a list of short names for a resource.

type Server Uses

type Server struct {
    Addr        string
    Port        int
    Path        string
    EnableHTTPS bool
    TLSConfig   *tls.Config
    Validate    ValidatorFn
    Prober      httpprober.Prober
    Once        sync.Once
}

func (*Server) DoServerCheck Uses

func (server *Server) DoServerCheck() (probe.Result, string, error)

type ServerStatus Uses

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 Uses

type ValidatorFn func([]byte) error

Package componentstatus imports 13 packages (graph) and is imported by 10 packages. Updated 2019-05-02. Refresh now. Tools for package owners.