Documentation
¶
Index ¶
- Constants
- Variables
- type Container
- func (*Container) Descriptor() ([]byte, []int)
- func (m *Container) GetCommand() string
- func (m *Container) GetId() int64
- func (m *Container) GetLogfile() string
- func (m *Container) GetMount() *Mount
- func (m *Container) GetName() string
- func (m *Container) GetNamespaces() []string
- func (m *Container) GetState() string
- func (m *Container) GetSystemd() bool
- func (m *Container) Marshal() (dAtA []byte, err error)
- func (m *Container) MarshalTo(dAtA []byte) (int, error)
- func (m *Container) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Container) ProtoMessage()
- func (m *Container) Reset()
- func (m *Container) Size() (n int)
- func (m *Container) String() string
- func (m *Container) Unmarshal(dAtA []byte) error
- func (m *Container) XXX_DiscardUnknown()
- func (m *Container) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Container) XXX_Merge(src proto.Message)
- func (*Container) XXX_MessageName() string
- func (m *Container) XXX_Size() int
- func (m *Container) XXX_Unmarshal(b []byte) error
- type Error
- func (*Error) Descriptor() ([]byte, []int)
- func (m *Error) GetCode() int64
- func (m *Error) GetMessage() string
- func (m *Error) Marshal() (dAtA []byte, err error)
- func (m *Error) MarshalTo(dAtA []byte) (int, error)
- func (m *Error) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Error) ProtoMessage()
- func (m *Error) Reset()
- func (m *Error) Size() (n int)
- func (m *Error) String() string
- func (m *Error) Unmarshal(dAtA []byte) error
- func (m *Error) XXX_DiscardUnknown()
- func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Error) XXX_Merge(src proto.Message)
- func (*Error) XXX_MessageName() string
- func (m *Error) XXX_Size() int
- func (m *Error) XXX_Unmarshal(b []byte) error
- type Image
- func (*Image) Descriptor() ([]byte, []int)
- func (m *Image) GetAction() Image_Action
- func (m *Image) GetContainer() *Container
- func (m *Image) GetLastError() Image_ErrorCode
- func (m *Image) GetRetries() int32
- func (m *Image) GetState() ImageState
- func (m *Image) Marshal() (dAtA []byte, err error)
- func (m *Image) MarshalTo(dAtA []byte) (int, error)
- func (m *Image) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Image) ProtoMessage()
- func (m *Image) Reset()
- func (m *Image) Size() (n int)
- func (m *Image) String() string
- func (m *Image) Unmarshal(dAtA []byte) error
- func (m *Image) XXX_DiscardUnknown()
- func (m *Image) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Image) XXX_Merge(src proto.Message)
- func (*Image) XXX_MessageName() string
- func (m *Image) XXX_Size() int
- func (m *Image) XXX_Unmarshal(b []byte) error
- type ImageSet
- func (*ImageSet) Descriptor() ([]byte, []int)
- func (m *ImageSet) GetImages() map[string]*Image
- func (m *ImageSet) GetRetries() int32
- func (m *ImageSet) GetState() ImageState
- func (m *ImageSet) Marshal() (dAtA []byte, err error)
- func (m *ImageSet) MarshalTo(dAtA []byte) (int, error)
- func (m *ImageSet) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ImageSet) Name() string
- func (*ImageSet) New() types.Message
- func (*ImageSet) ProtoMessage()
- func (m *ImageSet) Reset()
- func (m *ImageSet) Size() (n int)
- func (m *ImageSet) String() string
- func (m *ImageSet) Unmarshal(dAtA []byte) error
- func (m *ImageSet) XXX_DiscardUnknown()
- func (m *ImageSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ImageSet) XXX_Merge(src proto.Message)
- func (*ImageSet) XXX_MessageName() string
- func (m *ImageSet) XXX_Size() int
- func (m *ImageSet) XXX_Unmarshal(b []byte) error
- type ImageState
- type Image_Action
- type Image_ErrorCode
- type Mount
- func (*Mount) Descriptor() ([]byte, []int)
- func (m *Mount) GetKind() string
- func (m *Mount) GetMountId() int64
- func (m *Mount) GetOverlay() *MountOverlay
- func (m *Mount) GetRbd() *MountRbd
- func (m *Mount) Marshal() (dAtA []byte, err error)
- func (m *Mount) MarshalTo(dAtA []byte) (int, error)
- func (m *Mount) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Mount) ProtoMessage()
- func (m *Mount) Reset()
- func (m *Mount) Size() (n int)
- func (m *Mount) String() string
- func (m *Mount) Unmarshal(dAtA []byte) error
- func (m *Mount) XXX_DiscardUnknown()
- func (m *Mount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Mount) XXX_Merge(src proto.Message)
- func (*Mount) XXX_MessageName() string
- func (m *Mount) XXX_Size() int
- func (m *Mount) XXX_Unmarshal(b []byte) error
- type MountOverlay
- func (*MountOverlay) Descriptor() ([]byte, []int)
- func (m *MountOverlay) GetId() int64
- func (m *MountOverlay) GetLower() []*Mount
- func (m *MountOverlay) GetMountpoint() string
- func (m *MountOverlay) GetRefs() int64
- func (m *MountOverlay) GetUpperdir() string
- func (m *MountOverlay) GetWorkdir() string
- func (m *MountOverlay) Marshal() (dAtA []byte, err error)
- func (m *MountOverlay) MarshalTo(dAtA []byte) (int, error)
- func (m *MountOverlay) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MountOverlay) ProtoMessage()
- func (m *MountOverlay) Reset()
- func (m *MountOverlay) Size() (n int)
- func (m *MountOverlay) String() string
- func (m *MountOverlay) Unmarshal(dAtA []byte) error
- func (m *MountOverlay) XXX_DiscardUnknown()
- func (m *MountOverlay) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MountOverlay) XXX_Merge(src proto.Message)
- func (*MountOverlay) XXX_MessageName() string
- func (m *MountOverlay) XXX_Size() int
- func (m *MountOverlay) XXX_Unmarshal(b []byte) error
- type MountRbd
- func (*MountRbd) Descriptor() ([]byte, []int)
- func (m *MountRbd) GetFsType() string
- func (m *MountRbd) GetId() int64
- func (m *MountRbd) GetMountOptions() []string
- func (m *MountRbd) GetMountpoint() string
- func (m *MountRbd) GetRbd() *Rbd
- func (m *MountRbd) GetRbdId() int64
- func (m *MountRbd) GetRefs() int64
- func (m *MountRbd) Marshal() (dAtA []byte, err error)
- func (m *MountRbd) MarshalTo(dAtA []byte) (int, error)
- func (m *MountRbd) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MountRbd) ProtoMessage()
- func (m *MountRbd) Reset()
- func (m *MountRbd) Size() (n int)
- func (m *MountRbd) String() string
- func (m *MountRbd) Unmarshal(dAtA []byte) error
- func (m *MountRbd) XXX_DiscardUnknown()
- func (m *MountRbd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MountRbd) XXX_Merge(src proto.Message)
- func (*MountRbd) XXX_MessageName() string
- func (m *MountRbd) XXX_Size() int
- func (m *MountRbd) XXX_Unmarshal(b []byte) error
- type Rbd
- func (*Rbd) Descriptor() ([]byte, []int)
- func (m *Rbd) GetDeviceFile() string
- func (m *Rbd) GetDeviceId() int64
- func (m *Rbd) GetId() int64
- func (m *Rbd) GetImage() string
- func (m *Rbd) GetMonitors() []string
- func (m *Rbd) GetOptions() *RbdOptions
- func (m *Rbd) GetPool() string
- func (m *Rbd) GetRefs() int64
- func (m *Rbd) GetSnapshot() string
- func (m *Rbd) Marshal() (dAtA []byte, err error)
- func (m *Rbd) MarshalTo(dAtA []byte) (int, error)
- func (m *Rbd) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Rbd) ProtoMessage()
- func (m *Rbd) Reset()
- func (m *Rbd) Size() (n int)
- func (m *Rbd) String() string
- func (m *Rbd) Unmarshal(dAtA []byte) error
- func (m *Rbd) XXX_DiscardUnknown()
- func (m *Rbd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Rbd) XXX_Merge(src proto.Message)
- func (*Rbd) XXX_MessageName() string
- func (m *Rbd) XXX_Size() int
- func (m *Rbd) XXX_Unmarshal(b []byte) error
- type RbdOptions
- func (*RbdOptions) Descriptor() ([]byte, []int)
- func (m *RbdOptions) GetAbortOnFull() bool
- func (m *RbdOptions) GetAllocSize() int32
- func (m *RbdOptions) GetCephRequiresSignatures() bool
- func (m *RbdOptions) GetCephxSignMessages() bool
- func (m *RbdOptions) GetCrc() bool
- func (m *RbdOptions) GetExclusive() bool
- func (m *RbdOptions) GetForce() bool
- func (m *RbdOptions) GetFsid() string
- func (m *RbdOptions) GetIp() string
- func (m *RbdOptions) GetLockOnRead() bool
- func (m *RbdOptions) GetLockTimeout() int64
- func (m *RbdOptions) GetMountTimeout() int32
- func (m *RbdOptions) GetName() string
- func (m *RbdOptions) GetNamespace() string
- func (m *RbdOptions) GetNocephRequiresSignatures() bool
- func (m *RbdOptions) GetNocephxSignMessages() bool
- func (m *RbdOptions) GetNocrc() bool
- func (m *RbdOptions) GetNoshare() bool
- func (m *RbdOptions) GetNotcpNodelay() bool
- func (m *RbdOptions) GetNotrim() bool
- func (m *RbdOptions) GetOsdIdleTtl() int32
- func (m *RbdOptions) GetOsdkeepalive() int32
- func (m *RbdOptions) GetQueueDepth() int32
- func (m *RbdOptions) GetRo() bool
- func (m *RbdOptions) GetRw() bool
- func (m *RbdOptions) GetSecret() string
- func (m *RbdOptions) GetShare() bool
- func (m *RbdOptions) GetTcpNodelay() bool
- func (m *RbdOptions) Marshal() (dAtA []byte, err error)
- func (m *RbdOptions) MarshalTo(dAtA []byte) (int, error)
- func (m *RbdOptions) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RbdOptions) ProtoMessage()
- func (m *RbdOptions) Reset()
- func (m *RbdOptions) Size() (n int)
- func (m *RbdOptions) String() string
- func (m *RbdOptions) Unmarshal(dAtA []byte) error
- func (m *RbdOptions) XXX_DiscardUnknown()
- func (m *RbdOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RbdOptions) XXX_Merge(src proto.Message)
- func (*RbdOptions) XXX_MessageName() string
- func (m *RbdOptions) XXX_Size() int
- func (m *RbdOptions) XXX_Unmarshal(b []byte) error
Constants ¶
const Name = "type.googleapis.com/ImageAPI.ImageSet"
Variables ¶
var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthImageapi = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowImageapi = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupImageapi = fmt.Errorf("proto: unexpected end of group") )
var ImageState_name = map[int32]string{
0: "UNKNOWN",
1: "IDLE",
2: "ACTIVE",
3: "UPDATE",
4: "ERROR",
5: "FATAL",
}
var ImageState_value = map[string]int32{
"UNKNOWN": 0,
"IDLE": 1,
"ACTIVE": 2,
"UPDATE": 3,
"ERROR": 4,
"FATAL": 5,
}
var Image_Action_name = map[int32]string{
0: "NONE",
1: "CREATE",
2: "DELETE",
3: "RELOAD",
}
var Image_Action_value = map[string]int32{
"NONE": 0,
"CREATE": 1,
"DELETE": 2,
"RELOAD": 3,
}
var Image_ErrorCode_name = map[int32]string{
0: "NOERROR",
1: "MAX_ATTEMPTS",
2: "MAX_DEATHS",
3: "SERVER_FAIL",
4: "ATTACH",
5: "MOUNT",
6: "OVERLAY",
7: "INIT_FAIL",
8: "DIED",
}
var Image_ErrorCode_value = map[string]int32{
"NOERROR": 0,
"MAX_ATTEMPTS": 1,
"MAX_DEATHS": 2,
"SERVER_FAIL": 3,
"ATTACH": 4,
"MOUNT": 5,
"OVERLAY": 6,
"INIT_FAIL": 7,
"DIED": 8,
}
Functions ¶
This section is empty.
Types ¶
type Container ¶
type Container struct { Command string `protobuf:"bytes,1,opt,name=command,proto3" json:"command,omitempty"` Id int64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` Logfile string `protobuf:"bytes,3,opt,name=logfile,proto3" json:"logfile,omitempty"` Mount *Mount `protobuf:"bytes,4,opt,name=mount,proto3" json:"mount,omitempty"` // name is an optional identifier for the container. Name must be unique. Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` // A list of Linux namespaces to use. // // Note: This is currently unused. All containers currently get `mnt` and `pid`. // It's here as a placeholder for future use. Namespaces []string `protobuf:"bytes,6,rep,name=namespaces,proto3" json:"namespaces,omitempty"` // When read, this contains the current container state. On creation, this requests the initial state (valid options: `created` or `running`). The default is `created`. State string `protobuf:"bytes,7,opt,name=state,proto3" json:"state,omitempty"` // When `systemd` is set to `true`, we will assume that this container will run `systemd`, and perform the necessary magic dance to make systemd run inside of the container. The default is `false`. Systemd bool `protobuf:"varint,8,opt,name=systemd,proto3" json:"systemd,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The `container` option describes a minimally namespaced container.
A container is identified by a service-provided unique numeric `pid`.
Optionally, a container can be provided with a `name`. The name must be unique. Containers can be referenced by `name` if provided.
func (*Container) Descriptor ¶
func (*Container) GetCommand ¶
func (*Container) GetLogfile ¶
func (*Container) GetNamespaces ¶
func (*Container) GetSystemd ¶
func (*Container) MarshalToSizedBuffer ¶
func (*Container) ProtoMessage ¶
func (*Container) ProtoMessage()
func (*Container) XXX_DiscardUnknown ¶
func (m *Container) XXX_DiscardUnknown()
func (*Container) XXX_Marshal ¶
func (*Container) XXX_MessageName ¶
func (*Container) XXX_Unmarshal ¶
type Error ¶
type Error struct { Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Error) Descriptor ¶
func (*Error) GetMessage ¶
func (*Error) ProtoMessage ¶
func (*Error) ProtoMessage()
func (*Error) XXX_DiscardUnknown ¶
func (m *Error) XXX_DiscardUnknown()
func (*Error) XXX_Marshal ¶
func (*Error) XXX_MessageName ¶
func (*Error) XXX_Unmarshal ¶
type Image ¶
type Image struct { Container *Container `protobuf:"bytes,1,opt,name=container,proto3" json:"container,omitempty"` State ImageState `protobuf:"varint,2,opt,name=state,proto3,enum=ImageAPI.ImageState" json:"state,omitempty"` Action Image_Action `protobuf:"varint,3,opt,name=action,proto3,enum=ImageAPI.Image_Action" json:"action,omitempty"` LastError Image_ErrorCode `protobuf:"varint,4,opt,name=last_error,json=lastError,proto3,enum=ImageAPI.Image_ErrorCode" json:"last_error,omitempty"` Retries int32 `protobuf:"varint,5,opt,name=retries,proto3" json:"retries,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
An Image is a container with some extra metadata
func (*Image) Descriptor ¶
func (*Image) GetAction ¶
func (m *Image) GetAction() Image_Action
func (*Image) GetContainer ¶
func (*Image) GetLastError ¶
func (m *Image) GetLastError() Image_ErrorCode
func (*Image) GetRetries ¶
func (*Image) GetState ¶
func (m *Image) GetState() ImageState
func (*Image) ProtoMessage ¶
func (*Image) ProtoMessage()
func (*Image) XXX_DiscardUnknown ¶
func (m *Image) XXX_DiscardUnknown()
func (*Image) XXX_Marshal ¶
func (*Image) XXX_MessageName ¶
func (*Image) XXX_Unmarshal ¶
type ImageSet ¶
type ImageSet struct { // states for Images & ImageSets Images map[string]*Image `` /* 153-byte string literal not displayed */ State ImageState `protobuf:"varint,2,opt,name=state,proto3,enum=ImageAPI.ImageState" json:"state,omitempty"` Retries int32 `protobuf:"varint,5,opt,name=retries,proto3" json:"retries,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ImageSet) Descriptor ¶
func (*ImageSet) GetRetries ¶
func (*ImageSet) GetState ¶
func (m *ImageSet) GetState() ImageState
func (*ImageSet) MarshalToSizedBuffer ¶
func (*ImageSet) ProtoMessage ¶
func (*ImageSet) ProtoMessage()
func (*ImageSet) XXX_DiscardUnknown ¶
func (m *ImageSet) XXX_DiscardUnknown()
func (*ImageSet) XXX_Marshal ¶
func (*ImageSet) XXX_MessageName ¶
func (*ImageSet) XXX_Unmarshal ¶
type ImageState ¶
type ImageState int32
const ( // these are kraken only error states ImageState_UNKNOWN ImageState = 0 ImageState_IDLE ImageState = 1 ImageState_ACTIVE ImageState = 2 ImageState_UPDATE ImageState = 3 ImageState_ERROR ImageState = 4 ImageState_FATAL ImageState = 5 )
func (ImageState) EnumDescriptor ¶
func (ImageState) EnumDescriptor() ([]byte, []int)
func (ImageState) String ¶
func (x ImageState) String() string
type Image_Action ¶
type Image_Action int32
const ( Image_NONE Image_Action = 0 Image_CREATE Image_Action = 1 Image_DELETE Image_Action = 2 Image_RELOAD Image_Action = 3 )
func (Image_Action) EnumDescriptor ¶
func (Image_Action) EnumDescriptor() ([]byte, []int)
func (Image_Action) String ¶
func (x Image_Action) String() string
type Image_ErrorCode ¶
type Image_ErrorCode int32
const ( Image_NOERROR Image_ErrorCode = 0 Image_MAX_ATTEMPTS Image_ErrorCode = 1 Image_MAX_DEATHS Image_ErrorCode = 2 Image_SERVER_FAIL Image_ErrorCode = 3 Image_ATTACH Image_ErrorCode = 4 Image_MOUNT Image_ErrorCode = 5 Image_OVERLAY Image_ErrorCode = 6 Image_INIT_FAIL Image_ErrorCode = 7 Image_DIED Image_ErrorCode = 8 )
func (Image_ErrorCode) EnumDescriptor ¶
func (Image_ErrorCode) EnumDescriptor() ([]byte, []int)
func (Image_ErrorCode) String ¶
func (x Image_ErrorCode) String() string
type Mount ¶
type Mount struct { Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` MountId int64 `protobuf:"varint,2,opt,name=mount_id,json=mountId,proto3" json:"mount_id,omitempty"` Overlay *MountOverlay `protobuf:"bytes,3,opt,name=overlay,proto3" json:"overlay,omitempty"` Rbd *MountRbd `protobuf:"bytes,4,opt,name=rbd,proto3" json:"rbd,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Generically address mounts by kind and ID or definition Either an `mount_id` or a mount definition must be supplied. If both are supplied, the mount definition will be ignored. If `mount_id` is specified, then the kind/id will be used to reference that mount. If no `mount_id` is supplied a defition of type `kind` must be present.
func (*Mount) Descriptor ¶
func (*Mount) GetMountId ¶
func (*Mount) GetOverlay ¶
func (m *Mount) GetOverlay() *MountOverlay
func (*Mount) ProtoMessage ¶
func (*Mount) ProtoMessage()
func (*Mount) XXX_DiscardUnknown ¶
func (m *Mount) XXX_DiscardUnknown()
func (*Mount) XXX_Marshal ¶
func (*Mount) XXX_MessageName ¶
func (*Mount) XXX_Unmarshal ¶
type MountOverlay ¶
type MountOverlay struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // This is an array of mount specifications to be used (in order) as lower mounts for the overlay. Lower []*Mount `protobuf:"bytes,2,rep,name=lower,proto3" json:"lower,omitempty"` Mountpoint string `protobuf:"bytes,3,opt,name=mountpoint,proto3" json:"mountpoint,omitempty"` Refs int64 `protobuf:"varint,4,opt,name=refs,proto3" json:"refs,omitempty"` // currently, upperdir is always a directory in mountDir Upperdir string `protobuf:"bytes,5,opt,name=upperdir,proto3" json:"upperdir,omitempty"` Workdir string `protobuf:"bytes,6,opt,name=workdir,proto3" json:"workdir,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
`mount_overlay` describes an Overlayfs mount. All mount points must be RBD ID's. At very least, `lower` must be specified. If `upper` length is zero, no `upper` mounts will be used. `workdir` will be assigned automatically.
If the mounts specified in `lower` are specifications and not ID references, they will be recursively mounted/attached.
Overlay mounts are identified by their uppermost `lower` ID.
func (*MountOverlay) Descriptor ¶
func (*MountOverlay) Descriptor() ([]byte, []int)
func (*MountOverlay) GetId ¶
func (m *MountOverlay) GetId() int64
func (*MountOverlay) GetLower ¶
func (m *MountOverlay) GetLower() []*Mount
func (*MountOverlay) GetMountpoint ¶
func (m *MountOverlay) GetMountpoint() string
func (*MountOverlay) GetRefs ¶
func (m *MountOverlay) GetRefs() int64
func (*MountOverlay) GetUpperdir ¶
func (m *MountOverlay) GetUpperdir() string
func (*MountOverlay) GetWorkdir ¶
func (m *MountOverlay) GetWorkdir() string
func (*MountOverlay) Marshal ¶
func (m *MountOverlay) Marshal() (dAtA []byte, err error)
func (*MountOverlay) MarshalToSizedBuffer ¶
func (m *MountOverlay) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MountOverlay) ProtoMessage ¶
func (*MountOverlay) ProtoMessage()
func (*MountOverlay) Reset ¶
func (m *MountOverlay) Reset()
func (*MountOverlay) Size ¶
func (m *MountOverlay) Size() (n int)
func (*MountOverlay) String ¶
func (m *MountOverlay) String() string
func (*MountOverlay) Unmarshal ¶
func (m *MountOverlay) Unmarshal(dAtA []byte) error
func (*MountOverlay) XXX_DiscardUnknown ¶
func (m *MountOverlay) XXX_DiscardUnknown()
func (*MountOverlay) XXX_Marshal ¶
func (m *MountOverlay) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MountOverlay) XXX_Merge ¶
func (m *MountOverlay) XXX_Merge(src proto.Message)
func (*MountOverlay) XXX_MessageName ¶
func (*MountOverlay) XXX_MessageName() string
func (*MountOverlay) XXX_Size ¶
func (m *MountOverlay) XXX_Size() int
func (*MountOverlay) XXX_Unmarshal ¶
func (m *MountOverlay) XXX_Unmarshal(b []byte) error
type MountRbd ¶
type MountRbd struct { FsType string `protobuf:"bytes,1,opt,name=fs_type,json=fsType,proto3" json:"fs_type,omitempty"` Id int64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` MountOptions []string `protobuf:"bytes,3,rep,name=mount_options,json=mountOptions,proto3" json:"mount_options,omitempty"` Mountpoint string `protobuf:"bytes,4,opt,name=mountpoint,proto3" json:"mountpoint,omitempty"` Rbd *Rbd `protobuf:"bytes,5,opt,name=rbd,proto3" json:"rbd,omitempty"` RbdId int64 `protobuf:"varint,6,opt,name=rbd_id,json=rbdId,proto3" json:"rbd_id,omitempty"` Refs int64 `protobuf:"varint,7,opt,name=refs,proto3" json:"refs,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
mount_rbd describes an RBD mount. This must have at least and RBD ID associated with it (which becomes the mount's ID), and a provided filesystem type.
Either `rbd_id` or `rbd` must be specified. If both are specified, `rbd` will be ignored.
If `rbd` is specified and `rbd_id` is omitted, the RBD will first be attached, and will be detached on deletion.
func (*MountRbd) Descriptor ¶
func (*MountRbd) GetMountOptions ¶
func (*MountRbd) GetMountpoint ¶
func (*MountRbd) MarshalToSizedBuffer ¶
func (*MountRbd) ProtoMessage ¶
func (*MountRbd) ProtoMessage()
func (*MountRbd) XXX_DiscardUnknown ¶
func (m *MountRbd) XXX_DiscardUnknown()
func (*MountRbd) XXX_Marshal ¶
func (*MountRbd) XXX_MessageName ¶
func (*MountRbd) XXX_Unmarshal ¶
type Rbd ¶
type Rbd struct { // The device_file is the path to the system device file. DeviceFile string `protobuf:"bytes,1,opt,name=device_file,json=deviceFile,proto3" json:"device_file,omitempty"` // The dev_id is the device ID in the rbd subsystem. DeviceId int64 `protobuf:"varint,2,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` Id int64 `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty"` Image string `protobuf:"bytes,4,opt,name=image,proto3" json:"image,omitempty"` Monitors []string `protobuf:"bytes,5,rep,name=monitors,proto3" json:"monitors,omitempty"` Options *RbdOptions `protobuf:"bytes,6,opt,name=options,proto3" json:"options,omitempty"` Pool string `protobuf:"bytes,7,opt,name=pool,proto3" json:"pool,omitempty"` Refs int64 `protobuf:"varint,8,opt,name=refs,proto3" json:"refs,omitempty"` Snapshot string `protobuf:"bytes,9,opt,name=snapshot,proto3" json:"snapshot,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
rbd describes an RBD map. To successfully map, at least one monitor, pool and image must be specified. Additionally, you will need options.name and options.secret specified.
func (*Rbd) Descriptor ¶
func (*Rbd) GetDeviceFile ¶
func (*Rbd) GetDeviceId ¶
func (*Rbd) GetMonitors ¶
func (*Rbd) GetOptions ¶
func (m *Rbd) GetOptions() *RbdOptions
func (*Rbd) GetSnapshot ¶
func (*Rbd) ProtoMessage ¶
func (*Rbd) ProtoMessage()
func (*Rbd) XXX_DiscardUnknown ¶
func (m *Rbd) XXX_DiscardUnknown()
func (*Rbd) XXX_MessageName ¶
func (*Rbd) XXX_Unmarshal ¶
type RbdOptions ¶
type RbdOptions struct { AbortOnFull bool `protobuf:"varint,1,opt,name=abort_on_full,json=abortOnFull,proto3" json:"abort_on_full,omitempty"` AllocSize int32 `protobuf:"varint,2,opt,name=alloc_size,json=allocSize,proto3" json:"alloc_size,omitempty"` CephRequiresSignatures bool `` /* 130-byte string literal not displayed */ CephxSignMessages bool `protobuf:"varint,4,opt,name=cephx_sign_messages,json=cephxSignMessages,proto3" json:"cephx_sign_messages,omitempty"` Crc bool `protobuf:"varint,5,opt,name=crc,proto3" json:"crc,omitempty"` Exclusive bool `protobuf:"varint,6,opt,name=exclusive,proto3" json:"exclusive,omitempty"` Force bool `protobuf:"varint,7,opt,name=force,proto3" json:"force,omitempty"` Fsid string `protobuf:"bytes,8,opt,name=fsid,proto3" json:"fsid,omitempty"` Ip string `protobuf:"bytes,9,opt,name=ip,proto3" json:"ip,omitempty"` LockOnRead bool `protobuf:"varint,10,opt,name=lock_on_read,json=lockOnRead,proto3" json:"lock_on_read,omitempty"` LockTimeout int64 `protobuf:"varint,11,opt,name=lock_timeout,json=lockTimeout,proto3" json:"lock_timeout,omitempty"` MountTimeout int32 `protobuf:"varint,12,opt,name=mount_timeout,json=mountTimeout,proto3" json:"mount_timeout,omitempty"` Name string `protobuf:"bytes,13,opt,name=name,proto3" json:"name,omitempty"` Namespace string `protobuf:"bytes,14,opt,name=namespace,proto3" json:"namespace,omitempty"` NocephRequiresSignatures bool `` /* 137-byte string literal not displayed */ NocephxSignMessages bool `protobuf:"varint,16,opt,name=nocephx_sign_messages,json=nocephxSignMessages,proto3" json:"nocephx_sign_messages,omitempty"` Nocrc bool `protobuf:"varint,17,opt,name=nocrc,proto3" json:"nocrc,omitempty"` NotcpNodelay bool `protobuf:"varint,19,opt,name=notcp_nodelay,json=notcpNodelay,proto3" json:"notcp_nodelay,omitempty"` Notrim bool `protobuf:"varint,20,opt,name=notrim,proto3" json:"notrim,omitempty"` OsdIdleTtl int32 `protobuf:"varint,21,opt,name=osd_idle_ttl,json=osdIdleTtl,proto3" json:"osd_idle_ttl,omitempty"` Osdkeepalive int32 `protobuf:"varint,22,opt,name=osdkeepalive,proto3" json:"osdkeepalive,omitempty"` QueueDepth int32 `protobuf:"varint,23,opt,name=queue_depth,json=queueDepth,proto3" json:"queue_depth,omitempty"` Ro bool `protobuf:"varint,24,opt,name=ro,proto3" json:"ro,omitempty"` Rw bool `protobuf:"varint,25,opt,name=rw,proto3" json:"rw,omitempty"` Secret string `protobuf:"bytes,26,opt,name=secret,proto3" json:"secret,omitempty"` TcpNodelay bool `protobuf:"varint,28,opt,name=tcp_nodelay,json=tcpNodelay,proto3" json:"tcp_nodelay,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RbdOptions) Descriptor ¶
func (*RbdOptions) Descriptor() ([]byte, []int)
func (*RbdOptions) GetAbortOnFull ¶
func (m *RbdOptions) GetAbortOnFull() bool
func (*RbdOptions) GetAllocSize ¶
func (m *RbdOptions) GetAllocSize() int32
func (*RbdOptions) GetCephRequiresSignatures ¶
func (m *RbdOptions) GetCephRequiresSignatures() bool
func (*RbdOptions) GetCephxSignMessages ¶
func (m *RbdOptions) GetCephxSignMessages() bool
func (*RbdOptions) GetCrc ¶
func (m *RbdOptions) GetCrc() bool
func (*RbdOptions) GetExclusive ¶
func (m *RbdOptions) GetExclusive() bool
func (*RbdOptions) GetForce ¶
func (m *RbdOptions) GetForce() bool
func (*RbdOptions) GetFsid ¶
func (m *RbdOptions) GetFsid() string
func (*RbdOptions) GetIp ¶
func (m *RbdOptions) GetIp() string
func (*RbdOptions) GetLockOnRead ¶
func (m *RbdOptions) GetLockOnRead() bool
func (*RbdOptions) GetLockTimeout ¶
func (m *RbdOptions) GetLockTimeout() int64
func (*RbdOptions) GetMountTimeout ¶
func (m *RbdOptions) GetMountTimeout() int32
func (*RbdOptions) GetName ¶
func (m *RbdOptions) GetName() string
func (*RbdOptions) GetNamespace ¶
func (m *RbdOptions) GetNamespace() string
func (*RbdOptions) GetNocephRequiresSignatures ¶
func (m *RbdOptions) GetNocephRequiresSignatures() bool
func (*RbdOptions) GetNocephxSignMessages ¶
func (m *RbdOptions) GetNocephxSignMessages() bool
func (*RbdOptions) GetNocrc ¶
func (m *RbdOptions) GetNocrc() bool
func (*RbdOptions) GetNoshare ¶
func (m *RbdOptions) GetNoshare() bool
func (*RbdOptions) GetNotcpNodelay ¶
func (m *RbdOptions) GetNotcpNodelay() bool
func (*RbdOptions) GetNotrim ¶
func (m *RbdOptions) GetNotrim() bool
func (*RbdOptions) GetOsdIdleTtl ¶
func (m *RbdOptions) GetOsdIdleTtl() int32
func (*RbdOptions) GetOsdkeepalive ¶
func (m *RbdOptions) GetOsdkeepalive() int32
func (*RbdOptions) GetQueueDepth ¶
func (m *RbdOptions) GetQueueDepth() int32
func (*RbdOptions) GetRo ¶
func (m *RbdOptions) GetRo() bool
func (*RbdOptions) GetRw ¶
func (m *RbdOptions) GetRw() bool
func (*RbdOptions) GetSecret ¶
func (m *RbdOptions) GetSecret() string
func (*RbdOptions) GetShare ¶
func (m *RbdOptions) GetShare() bool
func (*RbdOptions) GetTcpNodelay ¶
func (m *RbdOptions) GetTcpNodelay() bool
func (*RbdOptions) Marshal ¶
func (m *RbdOptions) Marshal() (dAtA []byte, err error)
func (*RbdOptions) MarshalToSizedBuffer ¶
func (m *RbdOptions) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RbdOptions) ProtoMessage ¶
func (*RbdOptions) ProtoMessage()
func (*RbdOptions) Reset ¶
func (m *RbdOptions) Reset()
func (*RbdOptions) Size ¶
func (m *RbdOptions) Size() (n int)
func (*RbdOptions) String ¶
func (m *RbdOptions) String() string
func (*RbdOptions) Unmarshal ¶
func (m *RbdOptions) Unmarshal(dAtA []byte) error
func (*RbdOptions) XXX_DiscardUnknown ¶
func (m *RbdOptions) XXX_DiscardUnknown()
func (*RbdOptions) XXX_Marshal ¶
func (m *RbdOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RbdOptions) XXX_Merge ¶
func (m *RbdOptions) XXX_Merge(src proto.Message)
func (*RbdOptions) XXX_MessageName ¶
func (*RbdOptions) XXX_MessageName() string
func (*RbdOptions) XXX_Size ¶
func (m *RbdOptions) XXX_Size() int
func (*RbdOptions) XXX_Unmarshal ¶
func (m *RbdOptions) XXX_Unmarshal(b []byte) error