Documentation ¶
Index ¶
- func Format(out io.Writer, pvcs []corev1.PersistentVolumeClaim)
- func FormatPvcDetail(out io.Writer, status *PvcStatus)
- type Node
- type PVStatus
- type Pod
- type PvcContext
- func (p *PvcContext) Complete(namespace string) (err error)
- func (p *PvcContext) GetNamespace() string
- func (p *PvcContext) GetPvcDetail(pvcname string) (*PvcStatus, error)
- func (p *PvcContext) ListPvcs() (pvcs []corev1.PersistentVolumeClaim, err error)
- func (p *PvcContext) ListPvcsByPod(podname string) (pvcs []corev1.PersistentVolumeClaim, err error)
- type PvcPhase
- type PvcPhaseName
- type PvcPhaseStatus
- type PvcStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatPvcDetail ¶
Types ¶
type PvcContext ¶
type PvcContext struct {
// contains filtered or unexported fields
}
func NewPvcContext ¶
func NewPvcContext(streams genericclioptions.IOStreams) *PvcContext
func (*PvcContext) Complete ¶
func (p *PvcContext) Complete(namespace string) (err error)
func (*PvcContext) GetNamespace ¶
func (p *PvcContext) GetNamespace() string
func (*PvcContext) GetPvcDetail ¶
func (p *PvcContext) GetPvcDetail(pvcname string) (*PvcStatus, error)
func (*PvcContext) ListPvcs ¶
func (p *PvcContext) ListPvcs() (pvcs []corev1.PersistentVolumeClaim, err error)
func (*PvcContext) ListPvcsByPod ¶
func (p *PvcContext) ListPvcsByPod(podname string) (pvcs []corev1.PersistentVolumeClaim, err error)
type PvcPhase ¶
type PvcPhase struct { Name PvcPhaseName Status PvcPhaseStatus Detail string }
type PvcPhaseName ¶
type PvcPhaseName string
const ( PvcProvision PvcPhaseName = "Provision" PvcBind PvcPhaseName = "Bind" PvcAttach PvcPhaseName = "Attach" PvcMount PvcPhaseName = "Mount" )
type PvcPhaseStatus ¶
type PvcPhaseStatus string
const ( PvcPhaseSuccess PvcPhaseStatus = "success" PvcPhaseFail PvcPhaseStatus = "fail" PvcPhasePartlyFail PvcPhaseStatus = "partly fail" PvcPhaseOndoing PvcPhaseStatus = "ondoing" )
Click to show internal directories.
Click to hide internal directories.