etcd

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2018 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(edps []string) *client

Init

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client

func NewClient

func NewClient(edps []string) *Client

NewClient

func (*Client) AddExtraProperty

func (c *Client) AddExtraProperty(prfID string, ext model.ExtraSpec) (*model.ExtraSpec, error)

AddExtraProperty

func (*Client) CreateDock

func (c *Client) CreateDock(dck *model.DockSpec) (*model.DockSpec, error)

CreateDock

func (*Client) CreatePool

func (c *Client) CreatePool(pol *model.StoragePoolSpec) (*model.StoragePoolSpec, error)

CreatePool

func (*Client) CreateProfile

func (c *Client) CreateProfile(prf *model.ProfileSpec) (*model.ProfileSpec, error)

CreateProfile

func (*Client) CreateVolume

func (c *Client) CreateVolume(vol *model.VolumeSpec) (*model.VolumeSpec, error)

CreateVolume

func (*Client) CreateVolumeAttachment

func (c *Client) CreateVolumeAttachment(attachment *model.VolumeAttachmentSpec) (*model.VolumeAttachmentSpec, error)

CreateVolumeAttachment

func (*Client) CreateVolumeSnapshot

func (c *Client) CreateVolumeSnapshot(snp *model.VolumeSnapshotSpec) (*model.VolumeSnapshotSpec, error)

CreateVolumeSnapshot

func (*Client) DeleteDock

func (c *Client) DeleteDock(dckID string) error

DeleteDock

func (*Client) DeletePool

func (c *Client) DeletePool(polID string) error

DeletePool

func (*Client) DeleteProfile

func (c *Client) DeleteProfile(prfID string) error

DeleteProfile

func (*Client) DeleteVolume

func (c *Client) DeleteVolume(volID string) error

DeleteVolume

func (*Client) DeleteVolumeAttachment

func (c *Client) DeleteVolumeAttachment(attachmentId string) error

DeleteVolumeAttachment

func (*Client) DeleteVolumeSnapshot

func (c *Client) DeleteVolumeSnapshot(snpID string) error

DeleteVolumeSnapshot

func (*Client) ExtendVolume added in v0.1.1

func (c *Client) ExtendVolume(vol *model.VolumeSpec) (*model.VolumeSpec, error)

ExtendVolume ...

func (*Client) GetDefaultProfile

func (c *Client) GetDefaultProfile() (*model.ProfileSpec, error)

GetDefaultProfile

func (*Client) GetDock

func (c *Client) GetDock(dckID string) (*model.DockSpec, error)

GetDock

func (*Client) GetDockByPoolId

func (c *Client) GetDockByPoolId(poolId string) (*model.DockSpec, error)

GetDockByPoolId

func (*Client) GetPool

func (c *Client) GetPool(polID string) (*model.StoragePoolSpec, error)

GetPool

func (*Client) GetProfile

func (c *Client) GetProfile(prfID string) (*model.ProfileSpec, error)

GetProfile

func (*Client) GetVolume

func (c *Client) GetVolume(volID string) (*model.VolumeSpec, error)

GetVolume

func (*Client) GetVolumeAttachment

func (c *Client) GetVolumeAttachment(attachmentId string) (*model.VolumeAttachmentSpec, error)

GetVolumeAttachment

func (*Client) GetVolumeSnapshot

func (c *Client) GetVolumeSnapshot(snpID string) (*model.VolumeSnapshotSpec, error)

GetVolumeSnapshot

func (*Client) ListDocks

func (c *Client) ListDocks() ([]*model.DockSpec, error)

ListDocks

func (*Client) ListExtraProperties

func (c *Client) ListExtraProperties(prfID string) (*model.ExtraSpec, error)

ListExtraProperties

func (*Client) ListPools

func (c *Client) ListPools() ([]*model.StoragePoolSpec, error)

ListPools

func (*Client) ListProfiles

func (c *Client) ListProfiles() ([]*model.ProfileSpec, error)

ListProfiles

func (*Client) ListVolumeAttachments

func (c *Client) ListVolumeAttachments(volumeId string) ([]*model.VolumeAttachmentSpec, error)

ListVolumeAttachments

func (*Client) ListVolumeSnapshots

func (c *Client) ListVolumeSnapshots() ([]*model.VolumeSnapshotSpec, error)

ListVolumeSnapshots

func (*Client) ListVolumes

func (c *Client) ListVolumes() ([]*model.VolumeSpec, error)

ListVolumes

func (*Client) RemoveExtraProperty

func (c *Client) RemoveExtraProperty(prfID, extraKey string) error

RemoveExtraProperty

func (*Client) UpdateDock

func (c *Client) UpdateDock(dckID, name, desp string) (*model.DockSpec, error)

UpdateDock

func (*Client) UpdatePool

func (c *Client) UpdatePool(polID, name, desp string, usedCapacity int64, used bool) (*model.StoragePoolSpec, error)

UpdatePool

func (*Client) UpdateProfile

func (c *Client) UpdateProfile(prfID string, input *model.ProfileSpec) (*model.ProfileSpec, error)

UpdateProfile

func (*Client) UpdateVolume

func (c *Client) UpdateVolume(vol *model.VolumeSpec) (*model.VolumeSpec, error)

UpdateVolume ...

func (*Client) UpdateVolumeAttachment

func (c *Client) UpdateVolumeAttachment(attachmentId string, attachment *model.VolumeAttachmentSpec) (*model.VolumeAttachmentSpec, error)

UpdateVolumeAttachment

func (*Client) UpdateVolumeSnapshot

func (c *Client) UpdateVolumeSnapshot(snpID string, snp *model.VolumeSnapshotSpec) (*model.VolumeSnapshotSpec, error)

UpdateVolumeSnapshot

type Request

type Request struct {
	Url        string `json:"url"`
	Content    string `json:"content"`
	NewContent string `json:"newContent"`
}

Request

type Response

type Response struct {
	Status  string   `json:"status"`
	Message []string `json:"message"`
	Error   string   `json:"error"`
}

Response

Jump to

Keyboard shortcuts

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