Documentation
¶
Index ¶
- func AdaptLsvdDebug(t LsvdDebug) *rpc.Interface
- type LsvdDebug
- type LsvdDebugClient
- func (c LsvdDebugClient) Export() LsvdDebug
- func (v LsvdDebugClient) GetMetrics(ctx context.Context) (*LsvdDebugClientGetMetricsResults, error)
- func (v LsvdDebugClient) ListMounts(ctx context.Context) (*LsvdDebugClientListMountsResults, error)
- func (v LsvdDebugClient) ListVolumes(ctx context.Context) (*LsvdDebugClientListVolumesResults, error)
- type LsvdDebugClientGetMetricsResults
- type LsvdDebugClientListMountsResults
- type LsvdDebugClientListVolumesResults
- type LsvdDebugGetMetrics
- type LsvdDebugGetMetricsArgs
- type LsvdDebugGetMetricsResults
- func (v *LsvdDebugGetMetricsResults) MarshalCBOR() ([]byte, error)
- func (v *LsvdDebugGetMetricsResults) MarshalJSON() ([]byte, error)
- func (v *LsvdDebugGetMetricsResults) SetMetrics(metrics *ReconcileMetrics)
- func (v *LsvdDebugGetMetricsResults) UnmarshalCBOR(data []byte) error
- func (v *LsvdDebugGetMetricsResults) UnmarshalJSON(data []byte) error
- type LsvdDebugListMounts
- type LsvdDebugListMountsArgs
- type LsvdDebugListMountsResults
- func (v *LsvdDebugListMountsResults) MarshalCBOR() ([]byte, error)
- func (v *LsvdDebugListMountsResults) MarshalJSON() ([]byte, error)
- func (v *LsvdDebugListMountsResults) SetMounts(mounts []*MountInfo)
- func (v *LsvdDebugListMountsResults) UnmarshalCBOR(data []byte) error
- func (v *LsvdDebugListMountsResults) UnmarshalJSON(data []byte) error
- type LsvdDebugListVolumes
- type LsvdDebugListVolumesArgs
- type LsvdDebugListVolumesResults
- func (v *LsvdDebugListVolumesResults) MarshalCBOR() ([]byte, error)
- func (v *LsvdDebugListVolumesResults) MarshalJSON() ([]byte, error)
- func (v *LsvdDebugListVolumesResults) SetVolumes(volumes []*VolumeInfo)
- func (v *LsvdDebugListVolumesResults) UnmarshalCBOR(data []byte) error
- func (v *LsvdDebugListVolumesResults) UnmarshalJSON(data []byte) error
- type MountInfo
- func (v *MountInfo) DevicePath() string
- func (v *MountInfo) EntityId() string
- func (v *MountInfo) HasDevicePath() bool
- func (v *MountInfo) HasEntityId() bool
- func (v *MountInfo) HasLeaseNonce() bool
- func (v *MountInfo) HasMountPath() bool
- func (v *MountInfo) HasMounted() bool
- func (v *MountInfo) HasNbdIndex() bool
- func (v *MountInfo) HasReadOnly() bool
- func (v *MountInfo) HasVolumeId() bool
- func (v *MountInfo) LeaseNonce() string
- func (v *MountInfo) MarshalCBOR() ([]byte, error)
- func (v *MountInfo) MarshalJSON() ([]byte, error)
- func (v *MountInfo) MountPath() string
- func (v *MountInfo) Mounted() bool
- func (v *MountInfo) NbdIndex() uint32
- func (v *MountInfo) ReadOnly() bool
- func (v *MountInfo) SetDevicePath(device_path string)
- func (v *MountInfo) SetEntityId(entity_id string)
- func (v *MountInfo) SetLeaseNonce(lease_nonce string)
- func (v *MountInfo) SetMountPath(mount_path string)
- func (v *MountInfo) SetMounted(mounted bool)
- func (v *MountInfo) SetNbdIndex(nbd_index uint32)
- func (v *MountInfo) SetReadOnly(read_only bool)
- func (v *MountInfo) SetVolumeId(volume_id string)
- func (v *MountInfo) UnmarshalCBOR(data []byte) error
- func (v *MountInfo) UnmarshalJSON(data []byte) error
- func (v *MountInfo) VolumeId() string
- type ReconcileMetrics
- func (v *ReconcileMetrics) HasLastMountDuration() bool
- func (v *ReconcileMetrics) HasLastVolumeDuration() bool
- func (v *ReconcileMetrics) HasMountErrorCount() bool
- func (v *ReconcileMetrics) HasMountReconcileCount() bool
- func (v *ReconcileMetrics) HasVolumeErrorCount() bool
- func (v *ReconcileMetrics) HasVolumeReconcileCount() bool
- func (v *ReconcileMetrics) LastMountDuration() *standard.Duration
- func (v *ReconcileMetrics) LastVolumeDuration() *standard.Duration
- func (v *ReconcileMetrics) MarshalCBOR() ([]byte, error)
- func (v *ReconcileMetrics) MarshalJSON() ([]byte, error)
- func (v *ReconcileMetrics) MountErrorCount() int64
- func (v *ReconcileMetrics) MountReconcileCount() int64
- func (v *ReconcileMetrics) SetLastMountDuration(last_mount_duration *standard.Duration)
- func (v *ReconcileMetrics) SetLastVolumeDuration(last_volume_duration *standard.Duration)
- func (v *ReconcileMetrics) SetMountErrorCount(mount_error_count int64)
- func (v *ReconcileMetrics) SetMountReconcileCount(mount_reconcile_count int64)
- func (v *ReconcileMetrics) SetVolumeErrorCount(volume_error_count int64)
- func (v *ReconcileMetrics) SetVolumeReconcileCount(volume_reconcile_count int64)
- func (v *ReconcileMetrics) UnmarshalCBOR(data []byte) error
- func (v *ReconcileMetrics) UnmarshalJSON(data []byte) error
- func (v *ReconcileMetrics) VolumeErrorCount() int64
- func (v *ReconcileMetrics) VolumeReconcileCount() int64
- type VolumeInfo
- func (v *VolumeInfo) DiskPath() string
- func (v *VolumeInfo) EntityId() string
- func (v *VolumeInfo) Filesystem() string
- func (v *VolumeInfo) HasDiskPath() bool
- func (v *VolumeInfo) HasEntityId() bool
- func (v *VolumeInfo) HasFilesystem() bool
- func (v *VolumeInfo) HasRemoteOnly() bool
- func (v *VolumeInfo) HasSizeBytes() bool
- func (v *VolumeInfo) HasVolumeId() bool
- func (v *VolumeInfo) MarshalCBOR() ([]byte, error)
- func (v *VolumeInfo) MarshalJSON() ([]byte, error)
- func (v *VolumeInfo) RemoteOnly() bool
- func (v *VolumeInfo) SetDiskPath(disk_path string)
- func (v *VolumeInfo) SetEntityId(entity_id string)
- func (v *VolumeInfo) SetFilesystem(filesystem string)
- func (v *VolumeInfo) SetRemoteOnly(remote_only bool)
- func (v *VolumeInfo) SetSizeBytes(size_bytes int64)
- func (v *VolumeInfo) SetVolumeId(volume_id string)
- func (v *VolumeInfo) SizeBytes() int64
- func (v *VolumeInfo) UnmarshalCBOR(data []byte) error
- func (v *VolumeInfo) UnmarshalJSON(data []byte) error
- func (v *VolumeInfo) VolumeId() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdaptLsvdDebug ¶
Types ¶
type LsvdDebug ¶
type LsvdDebug interface {
ListVolumes(ctx context.Context, state *LsvdDebugListVolumes) error
ListMounts(ctx context.Context, state *LsvdDebugListMounts) error
GetMetrics(ctx context.Context, state *LsvdDebugGetMetrics) error
}
type LsvdDebugClient ¶
func NewLsvdDebugClient ¶
func NewLsvdDebugClient(client rpc.Client) *LsvdDebugClient
func (LsvdDebugClient) Export ¶
func (c LsvdDebugClient) Export() LsvdDebug
func (LsvdDebugClient) GetMetrics ¶
func (v LsvdDebugClient) GetMetrics(ctx context.Context) (*LsvdDebugClientGetMetricsResults, error)
func (LsvdDebugClient) ListMounts ¶
func (v LsvdDebugClient) ListMounts(ctx context.Context) (*LsvdDebugClientListMountsResults, error)
func (LsvdDebugClient) ListVolumes ¶
func (v LsvdDebugClient) ListVolumes(ctx context.Context) (*LsvdDebugClientListVolumesResults, error)
type LsvdDebugClientGetMetricsResults ¶
type LsvdDebugClientGetMetricsResults struct {
// contains filtered or unexported fields
}
func (*LsvdDebugClientGetMetricsResults) HasMetrics ¶
func (v *LsvdDebugClientGetMetricsResults) HasMetrics() bool
func (*LsvdDebugClientGetMetricsResults) Metrics ¶
func (v *LsvdDebugClientGetMetricsResults) Metrics() *ReconcileMetrics
type LsvdDebugClientListMountsResults ¶
type LsvdDebugClientListMountsResults struct {
// contains filtered or unexported fields
}
func (*LsvdDebugClientListMountsResults) HasMounts ¶
func (v *LsvdDebugClientListMountsResults) HasMounts() bool
func (*LsvdDebugClientListMountsResults) Mounts ¶
func (v *LsvdDebugClientListMountsResults) Mounts() []*MountInfo
type LsvdDebugClientListVolumesResults ¶
type LsvdDebugClientListVolumesResults struct {
// contains filtered or unexported fields
}
func (*LsvdDebugClientListVolumesResults) HasVolumes ¶
func (v *LsvdDebugClientListVolumesResults) HasVolumes() bool
func (*LsvdDebugClientListVolumesResults) Volumes ¶
func (v *LsvdDebugClientListVolumesResults) Volumes() []*VolumeInfo
type LsvdDebugGetMetrics ¶
func (*LsvdDebugGetMetrics) Args ¶
func (t *LsvdDebugGetMetrics) Args() *LsvdDebugGetMetricsArgs
func (*LsvdDebugGetMetrics) Results ¶
func (t *LsvdDebugGetMetrics) Results() *LsvdDebugGetMetricsResults
type LsvdDebugGetMetricsArgs ¶
type LsvdDebugGetMetricsArgs struct {
// contains filtered or unexported fields
}
func (*LsvdDebugGetMetricsArgs) MarshalCBOR ¶
func (v *LsvdDebugGetMetricsArgs) MarshalCBOR() ([]byte, error)
func (*LsvdDebugGetMetricsArgs) MarshalJSON ¶
func (v *LsvdDebugGetMetricsArgs) MarshalJSON() ([]byte, error)
func (*LsvdDebugGetMetricsArgs) UnmarshalCBOR ¶
func (v *LsvdDebugGetMetricsArgs) UnmarshalCBOR(data []byte) error
func (*LsvdDebugGetMetricsArgs) UnmarshalJSON ¶
func (v *LsvdDebugGetMetricsArgs) UnmarshalJSON(data []byte) error
type LsvdDebugGetMetricsResults ¶
type LsvdDebugGetMetricsResults struct {
// contains filtered or unexported fields
}
func (*LsvdDebugGetMetricsResults) MarshalCBOR ¶
func (v *LsvdDebugGetMetricsResults) MarshalCBOR() ([]byte, error)
func (*LsvdDebugGetMetricsResults) MarshalJSON ¶
func (v *LsvdDebugGetMetricsResults) MarshalJSON() ([]byte, error)
func (*LsvdDebugGetMetricsResults) SetMetrics ¶
func (v *LsvdDebugGetMetricsResults) SetMetrics(metrics *ReconcileMetrics)
func (*LsvdDebugGetMetricsResults) UnmarshalCBOR ¶
func (v *LsvdDebugGetMetricsResults) UnmarshalCBOR(data []byte) error
func (*LsvdDebugGetMetricsResults) UnmarshalJSON ¶
func (v *LsvdDebugGetMetricsResults) UnmarshalJSON(data []byte) error
type LsvdDebugListMounts ¶
func (*LsvdDebugListMounts) Args ¶
func (t *LsvdDebugListMounts) Args() *LsvdDebugListMountsArgs
func (*LsvdDebugListMounts) Results ¶
func (t *LsvdDebugListMounts) Results() *LsvdDebugListMountsResults
type LsvdDebugListMountsArgs ¶
type LsvdDebugListMountsArgs struct {
// contains filtered or unexported fields
}
func (*LsvdDebugListMountsArgs) MarshalCBOR ¶
func (v *LsvdDebugListMountsArgs) MarshalCBOR() ([]byte, error)
func (*LsvdDebugListMountsArgs) MarshalJSON ¶
func (v *LsvdDebugListMountsArgs) MarshalJSON() ([]byte, error)
func (*LsvdDebugListMountsArgs) UnmarshalCBOR ¶
func (v *LsvdDebugListMountsArgs) UnmarshalCBOR(data []byte) error
func (*LsvdDebugListMountsArgs) UnmarshalJSON ¶
func (v *LsvdDebugListMountsArgs) UnmarshalJSON(data []byte) error
type LsvdDebugListMountsResults ¶
type LsvdDebugListMountsResults struct {
// contains filtered or unexported fields
}
func (*LsvdDebugListMountsResults) MarshalCBOR ¶
func (v *LsvdDebugListMountsResults) MarshalCBOR() ([]byte, error)
func (*LsvdDebugListMountsResults) MarshalJSON ¶
func (v *LsvdDebugListMountsResults) MarshalJSON() ([]byte, error)
func (*LsvdDebugListMountsResults) SetMounts ¶
func (v *LsvdDebugListMountsResults) SetMounts(mounts []*MountInfo)
func (*LsvdDebugListMountsResults) UnmarshalCBOR ¶
func (v *LsvdDebugListMountsResults) UnmarshalCBOR(data []byte) error
func (*LsvdDebugListMountsResults) UnmarshalJSON ¶
func (v *LsvdDebugListMountsResults) UnmarshalJSON(data []byte) error
type LsvdDebugListVolumes ¶
func (*LsvdDebugListVolumes) Args ¶
func (t *LsvdDebugListVolumes) Args() *LsvdDebugListVolumesArgs
func (*LsvdDebugListVolumes) Results ¶
func (t *LsvdDebugListVolumes) Results() *LsvdDebugListVolumesResults
type LsvdDebugListVolumesArgs ¶
type LsvdDebugListVolumesArgs struct {
// contains filtered or unexported fields
}
func (*LsvdDebugListVolumesArgs) MarshalCBOR ¶
func (v *LsvdDebugListVolumesArgs) MarshalCBOR() ([]byte, error)
func (*LsvdDebugListVolumesArgs) MarshalJSON ¶
func (v *LsvdDebugListVolumesArgs) MarshalJSON() ([]byte, error)
func (*LsvdDebugListVolumesArgs) UnmarshalCBOR ¶
func (v *LsvdDebugListVolumesArgs) UnmarshalCBOR(data []byte) error
func (*LsvdDebugListVolumesArgs) UnmarshalJSON ¶
func (v *LsvdDebugListVolumesArgs) UnmarshalJSON(data []byte) error
type LsvdDebugListVolumesResults ¶
type LsvdDebugListVolumesResults struct {
// contains filtered or unexported fields
}
func (*LsvdDebugListVolumesResults) MarshalCBOR ¶
func (v *LsvdDebugListVolumesResults) MarshalCBOR() ([]byte, error)
func (*LsvdDebugListVolumesResults) MarshalJSON ¶
func (v *LsvdDebugListVolumesResults) MarshalJSON() ([]byte, error)
func (*LsvdDebugListVolumesResults) SetVolumes ¶
func (v *LsvdDebugListVolumesResults) SetVolumes(volumes []*VolumeInfo)
func (*LsvdDebugListVolumesResults) UnmarshalCBOR ¶
func (v *LsvdDebugListVolumesResults) UnmarshalCBOR(data []byte) error
func (*LsvdDebugListVolumesResults) UnmarshalJSON ¶
func (v *LsvdDebugListVolumesResults) UnmarshalJSON(data []byte) error
type MountInfo ¶
type MountInfo struct {
// contains filtered or unexported fields
}
func (*MountInfo) DevicePath ¶
func (*MountInfo) HasDevicePath ¶
func (*MountInfo) HasEntityId ¶
func (*MountInfo) HasLeaseNonce ¶
func (*MountInfo) HasMountPath ¶
func (*MountInfo) HasMounted ¶
func (*MountInfo) HasNbdIndex ¶
func (*MountInfo) HasReadOnly ¶
func (*MountInfo) HasVolumeId ¶
func (*MountInfo) LeaseNonce ¶
func (*MountInfo) MarshalCBOR ¶
func (*MountInfo) MarshalJSON ¶
func (*MountInfo) SetDevicePath ¶
func (*MountInfo) SetEntityId ¶
func (*MountInfo) SetLeaseNonce ¶
func (*MountInfo) SetMountPath ¶
func (*MountInfo) SetMounted ¶
func (*MountInfo) SetNbdIndex ¶
func (*MountInfo) SetReadOnly ¶
func (*MountInfo) SetVolumeId ¶
func (*MountInfo) UnmarshalCBOR ¶
func (*MountInfo) UnmarshalJSON ¶
type ReconcileMetrics ¶
type ReconcileMetrics struct {
// contains filtered or unexported fields
}
func (*ReconcileMetrics) HasLastMountDuration ¶
func (v *ReconcileMetrics) HasLastMountDuration() bool
func (*ReconcileMetrics) HasLastVolumeDuration ¶
func (v *ReconcileMetrics) HasLastVolumeDuration() bool
func (*ReconcileMetrics) HasMountErrorCount ¶
func (v *ReconcileMetrics) HasMountErrorCount() bool
func (*ReconcileMetrics) HasMountReconcileCount ¶
func (v *ReconcileMetrics) HasMountReconcileCount() bool
func (*ReconcileMetrics) HasVolumeErrorCount ¶
func (v *ReconcileMetrics) HasVolumeErrorCount() bool
func (*ReconcileMetrics) HasVolumeReconcileCount ¶
func (v *ReconcileMetrics) HasVolumeReconcileCount() bool
func (*ReconcileMetrics) LastMountDuration ¶
func (v *ReconcileMetrics) LastMountDuration() *standard.Duration
func (*ReconcileMetrics) LastVolumeDuration ¶
func (v *ReconcileMetrics) LastVolumeDuration() *standard.Duration
func (*ReconcileMetrics) MarshalCBOR ¶
func (v *ReconcileMetrics) MarshalCBOR() ([]byte, error)
func (*ReconcileMetrics) MarshalJSON ¶
func (v *ReconcileMetrics) MarshalJSON() ([]byte, error)
func (*ReconcileMetrics) MountErrorCount ¶
func (v *ReconcileMetrics) MountErrorCount() int64
func (*ReconcileMetrics) MountReconcileCount ¶
func (v *ReconcileMetrics) MountReconcileCount() int64
func (*ReconcileMetrics) SetLastMountDuration ¶
func (v *ReconcileMetrics) SetLastMountDuration(last_mount_duration *standard.Duration)
func (*ReconcileMetrics) SetLastVolumeDuration ¶
func (v *ReconcileMetrics) SetLastVolumeDuration(last_volume_duration *standard.Duration)
func (*ReconcileMetrics) SetMountErrorCount ¶
func (v *ReconcileMetrics) SetMountErrorCount(mount_error_count int64)
func (*ReconcileMetrics) SetMountReconcileCount ¶
func (v *ReconcileMetrics) SetMountReconcileCount(mount_reconcile_count int64)
func (*ReconcileMetrics) SetVolumeErrorCount ¶
func (v *ReconcileMetrics) SetVolumeErrorCount(volume_error_count int64)
func (*ReconcileMetrics) SetVolumeReconcileCount ¶
func (v *ReconcileMetrics) SetVolumeReconcileCount(volume_reconcile_count int64)
func (*ReconcileMetrics) UnmarshalCBOR ¶
func (v *ReconcileMetrics) UnmarshalCBOR(data []byte) error
func (*ReconcileMetrics) UnmarshalJSON ¶
func (v *ReconcileMetrics) UnmarshalJSON(data []byte) error
func (*ReconcileMetrics) VolumeErrorCount ¶
func (v *ReconcileMetrics) VolumeErrorCount() int64
func (*ReconcileMetrics) VolumeReconcileCount ¶
func (v *ReconcileMetrics) VolumeReconcileCount() int64
type VolumeInfo ¶
type VolumeInfo struct {
// contains filtered or unexported fields
}
func (*VolumeInfo) DiskPath ¶
func (v *VolumeInfo) DiskPath() string
func (*VolumeInfo) EntityId ¶
func (v *VolumeInfo) EntityId() string
func (*VolumeInfo) Filesystem ¶
func (v *VolumeInfo) Filesystem() string
func (*VolumeInfo) HasDiskPath ¶
func (v *VolumeInfo) HasDiskPath() bool
func (*VolumeInfo) HasEntityId ¶
func (v *VolumeInfo) HasEntityId() bool
func (*VolumeInfo) HasFilesystem ¶
func (v *VolumeInfo) HasFilesystem() bool
func (*VolumeInfo) HasRemoteOnly ¶
func (v *VolumeInfo) HasRemoteOnly() bool
func (*VolumeInfo) HasSizeBytes ¶
func (v *VolumeInfo) HasSizeBytes() bool
func (*VolumeInfo) HasVolumeId ¶
func (v *VolumeInfo) HasVolumeId() bool
func (*VolumeInfo) MarshalCBOR ¶
func (v *VolumeInfo) MarshalCBOR() ([]byte, error)
func (*VolumeInfo) MarshalJSON ¶
func (v *VolumeInfo) MarshalJSON() ([]byte, error)
func (*VolumeInfo) RemoteOnly ¶
func (v *VolumeInfo) RemoteOnly() bool
func (*VolumeInfo) SetDiskPath ¶
func (v *VolumeInfo) SetDiskPath(disk_path string)
func (*VolumeInfo) SetEntityId ¶
func (v *VolumeInfo) SetEntityId(entity_id string)
func (*VolumeInfo) SetFilesystem ¶
func (v *VolumeInfo) SetFilesystem(filesystem string)
func (*VolumeInfo) SetRemoteOnly ¶
func (v *VolumeInfo) SetRemoteOnly(remote_only bool)
func (*VolumeInfo) SetSizeBytes ¶
func (v *VolumeInfo) SetSizeBytes(size_bytes int64)
func (*VolumeInfo) SetVolumeId ¶
func (v *VolumeInfo) SetVolumeId(volume_id string)
func (*VolumeInfo) SizeBytes ¶
func (v *VolumeInfo) SizeBytes() int64
func (*VolumeInfo) UnmarshalCBOR ¶
func (v *VolumeInfo) UnmarshalCBOR(data []byte) error
func (*VolumeInfo) UnmarshalJSON ¶
func (v *VolumeInfo) UnmarshalJSON(data []byte) error
func (*VolumeInfo) VolumeId ¶
func (v *VolumeInfo) VolumeId() string
Click to show internal directories.
Click to hide internal directories.