imageapi

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2021 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "type.googleapis.com/ImageAPI.ImageSet"

Variables

View Source
var (
	ErrInvalidLengthGenerated        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenerated          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthImageapi        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowImageapi          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupImageapi = fmt.Errorf("proto: unexpected end of group")
)
View Source
var ImageState_name = map[int32]string{
	0: "UNKNOWN",
	1: "IDLE",
	2: "ACTIVE",
	3: "UPDATE",
	4: "ERROR",
	5: "FATAL",
}
View Source
var ImageState_value = map[string]int32{
	"UNKNOWN": 0,
	"IDLE":    1,
	"ACTIVE":  2,
	"UPDATE":  3,
	"ERROR":   4,
	"FATAL":   5,
}
View Source
var Image_Action_name = map[int32]string{
	0: "NONE",
	1: "CREATE",
	2: "DELETE",
	3: "RELOAD",
}
View Source
var Image_Action_value = map[string]int32{
	"NONE":   0,
	"CREATE": 1,
	"DELETE": 2,
	"RELOAD": 3,
}
View Source
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",
}
View Source
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) Descriptor() ([]byte, []int)

func (*Container) GetCommand

func (m *Container) GetCommand() string

func (*Container) GetId

func (m *Container) GetId() int64

func (*Container) GetLogfile

func (m *Container) GetLogfile() string

func (*Container) GetMount

func (m *Container) GetMount() *Mount

func (*Container) GetName

func (m *Container) GetName() string

func (*Container) GetNamespaces

func (m *Container) GetNamespaces() []string

func (*Container) GetState

func (m *Container) GetState() string

func (*Container) GetSystemd

func (m *Container) GetSystemd() bool

func (*Container) Marshal

func (m *Container) Marshal() (dAtA []byte, err error)

func (*Container) MarshalTo

func (m *Container) MarshalTo(dAtA []byte) (int, error)

func (*Container) MarshalToSizedBuffer

func (m *Container) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Container) ProtoMessage

func (*Container) ProtoMessage()

func (*Container) Reset

func (m *Container) Reset()

func (*Container) Size

func (m *Container) Size() (n int)

func (*Container) String

func (m *Container) String() string

func (*Container) Unmarshal

func (m *Container) Unmarshal(dAtA []byte) error

func (*Container) XXX_DiscardUnknown

func (m *Container) XXX_DiscardUnknown()

func (*Container) XXX_Marshal

func (m *Container) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Container) XXX_Merge

func (m *Container) XXX_Merge(src proto.Message)

func (*Container) XXX_MessageName

func (*Container) XXX_MessageName() string

func (*Container) XXX_Size

func (m *Container) XXX_Size() int

func (*Container) XXX_Unmarshal

func (m *Container) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Error) GetCode

func (m *Error) GetCode() int64

func (*Error) GetMessage

func (m *Error) GetMessage() string

func (*Error) Marshal

func (m *Error) Marshal() (dAtA []byte, err error)

func (*Error) MarshalTo

func (m *Error) MarshalTo(dAtA []byte) (int, error)

func (*Error) MarshalToSizedBuffer

func (m *Error) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Error) ProtoMessage

func (*Error) ProtoMessage()

func (*Error) Reset

func (m *Error) Reset()

func (*Error) Size

func (m *Error) Size() (n int)

func (*Error) String

func (m *Error) String() string

func (*Error) Unmarshal

func (m *Error) Unmarshal(dAtA []byte) error

func (*Error) XXX_DiscardUnknown

func (m *Error) XXX_DiscardUnknown()

func (*Error) XXX_Marshal

func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Error) XXX_Merge

func (m *Error) XXX_Merge(src proto.Message)

func (*Error) XXX_MessageName

func (*Error) XXX_MessageName() string

func (*Error) XXX_Size

func (m *Error) XXX_Size() int

func (*Error) XXX_Unmarshal

func (m *Error) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Image) GetAction

func (m *Image) GetAction() Image_Action

func (*Image) GetContainer

func (m *Image) GetContainer() *Container

func (*Image) GetLastError

func (m *Image) GetLastError() Image_ErrorCode

func (*Image) GetRetries

func (m *Image) GetRetries() int32

func (*Image) GetState

func (m *Image) GetState() ImageState

func (*Image) Marshal

func (m *Image) Marshal() (dAtA []byte, err error)

func (*Image) MarshalTo

func (m *Image) MarshalTo(dAtA []byte) (int, error)

func (*Image) MarshalToSizedBuffer

func (m *Image) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Image) ProtoMessage

func (*Image) ProtoMessage()

func (*Image) Reset

func (m *Image) Reset()

func (*Image) Size

func (m *Image) Size() (n int)

func (*Image) String

func (m *Image) String() string

func (*Image) Unmarshal

func (m *Image) Unmarshal(dAtA []byte) error

func (*Image) XXX_DiscardUnknown

func (m *Image) XXX_DiscardUnknown()

func (*Image) XXX_Marshal

func (m *Image) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Image) XXX_Merge

func (m *Image) XXX_Merge(src proto.Message)

func (*Image) XXX_MessageName

func (*Image) XXX_MessageName() string

func (*Image) XXX_Size

func (m *Image) XXX_Size() int

func (*Image) XXX_Unmarshal

func (m *Image) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*ImageSet) GetImages

func (m *ImageSet) GetImages() map[string]*Image

func (*ImageSet) GetRetries

func (m *ImageSet) GetRetries() int32

func (*ImageSet) GetState

func (m *ImageSet) GetState() ImageState

func (*ImageSet) Marshal

func (m *ImageSet) Marshal() (dAtA []byte, err error)

func (*ImageSet) MarshalTo

func (m *ImageSet) MarshalTo(dAtA []byte) (int, error)

func (*ImageSet) MarshalToSizedBuffer

func (m *ImageSet) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ImageSet) Name

func (*ImageSet) Name() string

func (*ImageSet) New

func (*ImageSet) New() types.Message

func (*ImageSet) ProtoMessage

func (*ImageSet) ProtoMessage()

func (*ImageSet) Reset

func (m *ImageSet) Reset()

func (*ImageSet) Size

func (m *ImageSet) Size() (n int)

func (*ImageSet) String

func (m *ImageSet) String() string

func (*ImageSet) Unmarshal

func (m *ImageSet) Unmarshal(dAtA []byte) error

func (*ImageSet) XXX_DiscardUnknown

func (m *ImageSet) XXX_DiscardUnknown()

func (*ImageSet) XXX_Marshal

func (m *ImageSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ImageSet) XXX_Merge

func (m *ImageSet) XXX_Merge(src proto.Message)

func (*ImageSet) XXX_MessageName

func (*ImageSet) XXX_MessageName() string

func (*ImageSet) XXX_Size

func (m *ImageSet) XXX_Size() int

func (*ImageSet) XXX_Unmarshal

func (m *ImageSet) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Mount) GetKind

func (m *Mount) GetKind() string

func (*Mount) GetMountId

func (m *Mount) GetMountId() int64

func (*Mount) GetOverlay

func (m *Mount) GetOverlay() *MountOverlay

func (*Mount) GetRbd

func (m *Mount) GetRbd() *MountRbd

func (*Mount) Marshal

func (m *Mount) Marshal() (dAtA []byte, err error)

func (*Mount) MarshalTo

func (m *Mount) MarshalTo(dAtA []byte) (int, error)

func (*Mount) MarshalToSizedBuffer

func (m *Mount) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Mount) ProtoMessage

func (*Mount) ProtoMessage()

func (*Mount) Reset

func (m *Mount) Reset()

func (*Mount) Size

func (m *Mount) Size() (n int)

func (*Mount) String

func (m *Mount) String() string

func (*Mount) Unmarshal

func (m *Mount) Unmarshal(dAtA []byte) error

func (*Mount) XXX_DiscardUnknown

func (m *Mount) XXX_DiscardUnknown()

func (*Mount) XXX_Marshal

func (m *Mount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Mount) XXX_Merge

func (m *Mount) XXX_Merge(src proto.Message)

func (*Mount) XXX_MessageName

func (*Mount) XXX_MessageName() string

func (*Mount) XXX_Size

func (m *Mount) XXX_Size() int

func (*Mount) XXX_Unmarshal

func (m *Mount) XXX_Unmarshal(b []byte) error

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) MarshalTo

func (m *MountOverlay) MarshalTo(dAtA []byte) (int, 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) Descriptor() ([]byte, []int)

func (*MountRbd) GetFsType

func (m *MountRbd) GetFsType() string

func (*MountRbd) GetId

func (m *MountRbd) GetId() int64

func (*MountRbd) GetMountOptions

func (m *MountRbd) GetMountOptions() []string

func (*MountRbd) GetMountpoint

func (m *MountRbd) GetMountpoint() string

func (*MountRbd) GetRbd

func (m *MountRbd) GetRbd() *Rbd

func (*MountRbd) GetRbdId

func (m *MountRbd) GetRbdId() int64

func (*MountRbd) GetRefs

func (m *MountRbd) GetRefs() int64

func (*MountRbd) Marshal

func (m *MountRbd) Marshal() (dAtA []byte, err error)

func (*MountRbd) MarshalTo

func (m *MountRbd) MarshalTo(dAtA []byte) (int, error)

func (*MountRbd) MarshalToSizedBuffer

func (m *MountRbd) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MountRbd) ProtoMessage

func (*MountRbd) ProtoMessage()

func (*MountRbd) Reset

func (m *MountRbd) Reset()

func (*MountRbd) Size

func (m *MountRbd) Size() (n int)

func (*MountRbd) String

func (m *MountRbd) String() string

func (*MountRbd) Unmarshal

func (m *MountRbd) Unmarshal(dAtA []byte) error

func (*MountRbd) XXX_DiscardUnknown

func (m *MountRbd) XXX_DiscardUnknown()

func (*MountRbd) XXX_Marshal

func (m *MountRbd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MountRbd) XXX_Merge

func (m *MountRbd) XXX_Merge(src proto.Message)

func (*MountRbd) XXX_MessageName

func (*MountRbd) XXX_MessageName() string

func (*MountRbd) XXX_Size

func (m *MountRbd) XXX_Size() int

func (*MountRbd) XXX_Unmarshal

func (m *MountRbd) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Rbd) GetDeviceFile

func (m *Rbd) GetDeviceFile() string

func (*Rbd) GetDeviceId

func (m *Rbd) GetDeviceId() int64

func (*Rbd) GetId

func (m *Rbd) GetId() int64

func (*Rbd) GetImage

func (m *Rbd) GetImage() string

func (*Rbd) GetMonitors

func (m *Rbd) GetMonitors() []string

func (*Rbd) GetOptions

func (m *Rbd) GetOptions() *RbdOptions

func (*Rbd) GetPool

func (m *Rbd) GetPool() string

func (*Rbd) GetRefs

func (m *Rbd) GetRefs() int64

func (*Rbd) GetSnapshot

func (m *Rbd) GetSnapshot() string

func (*Rbd) Marshal

func (m *Rbd) Marshal() (dAtA []byte, err error)

func (*Rbd) MarshalTo

func (m *Rbd) MarshalTo(dAtA []byte) (int, error)

func (*Rbd) MarshalToSizedBuffer

func (m *Rbd) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Rbd) ProtoMessage

func (*Rbd) ProtoMessage()

func (*Rbd) Reset

func (m *Rbd) Reset()

func (*Rbd) Size

func (m *Rbd) Size() (n int)

func (*Rbd) String

func (m *Rbd) String() string

func (*Rbd) Unmarshal

func (m *Rbd) Unmarshal(dAtA []byte) error

func (*Rbd) XXX_DiscardUnknown

func (m *Rbd) XXX_DiscardUnknown()

func (*Rbd) XXX_Marshal

func (m *Rbd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Rbd) XXX_Merge

func (m *Rbd) XXX_Merge(src proto.Message)

func (*Rbd) XXX_MessageName

func (*Rbd) XXX_MessageName() string

func (*Rbd) XXX_Size

func (m *Rbd) XXX_Size() int

func (*Rbd) XXX_Unmarshal

func (m *Rbd) XXX_Unmarshal(b []byte) error

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"`
	Noshare                  bool     `protobuf:"varint,18,opt,name=noshare,proto3" json:"noshare,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"`
	Share                    bool     `protobuf:"varint,27,opt,name=share,proto3" json:"share,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) MarshalTo

func (m *RbdOptions) MarshalTo(dAtA []byte) (int, 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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL