controllers

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2019 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusOK       = http.StatusOK
	StatusAccepted = http.StatusAccepted
)

Variables

View Source
var AlertmgrConfFile string
View Source
var AlertmgrConfHome string

alert manager constants

View Source
var AlertmgrUrl string
View Source
var BackupExtension string
View Source
var GrafanaConfFile string
View Source
var GrafanaConfHome string
View Source
var GrafanaRestartCmd string
View Source
var KnownVersions = []map[string]string{
	{
		"name":        "v1beta",
		"description": "v1beta version",
		"status":      "CURRENT",
		"updatedAt":   "2017-07-10T14:36:58.014Z",
	},
}

KnownVersions

View Source
var PrometheusConfFile string
View Source
var PrometheusConfHome string

prometheus constants

View Source
var PrometheusUrl string
View Source
var ReloadPath string

Functions

func DoDownload

func DoDownload(metricsPortal *MetricsPortal, confHome string, confFile string)

func DoUpload

func DoUpload(metricsPortal *MetricsPortal, confHome string, url string, reloadPath string, toCallReloadEndpoint bool)

Types

type AlertPortal

type AlertPortal struct {
	BasePortal

	CtrClient client.Client
}

func NewAlertPortal

func NewAlertPortal() *AlertPortal

func (*AlertPortal) CreateAlert

func (v *AlertPortal) CreateAlert()

type BasePortal

type BasePortal struct {
	beego.Controller
}

func (*BasePortal) ErrorHandle

func (b *BasePortal) ErrorHandle(errType int, errMsg string)

func (*BasePortal) GetParameters

func (b *BasePortal) GetParameters() (map[string][]string, error)

func (*BasePortal) SuccessHandle

func (b *BasePortal) SuccessHandle(status int, body []byte)

type DockPortal

type DockPortal struct {
	BasePortal
}

DockPortal

func (*DockPortal) GetDock

func (d *DockPortal) GetDock()

GetDock

func (*DockPortal) ListDocks

func (d *DockPortal) ListDocks()

ListDocks

type FileSharePortal

type FileSharePortal struct {
	BasePortal

	CtrClient client.Client
}

func NewFileSharePortal

func NewFileSharePortal() *FileSharePortal

func (*FileSharePortal) CreateFileShare

func (f *FileSharePortal) CreateFileShare()

Function to store fileshare related entry into databse

func (*FileSharePortal) CreateFileShareAcl added in v0.5.3

func (f *FileSharePortal) CreateFileShareAcl()

Function to store Acl's related entry into databse

func (*FileSharePortal) DeleteFileShare

func (f *FileSharePortal) DeleteFileShare()

func (*FileSharePortal) DeleteFileShareAcl added in v0.5.3

func (f *FileSharePortal) DeleteFileShareAcl()

func (*FileSharePortal) GetFileShare

func (f *FileSharePortal) GetFileShare()

func (*FileSharePortal) GetFileShareAcl added in v0.5.3

func (f *FileSharePortal) GetFileShareAcl()

func (*FileSharePortal) ListFileShares

func (f *FileSharePortal) ListFileShares()

func (*FileSharePortal) ListFileSharesAcl added in v0.5.3

func (f *FileSharePortal) ListFileSharesAcl()

func (*FileSharePortal) UpdateFileShare

func (f *FileSharePortal) UpdateFileShare()

type FileShareSnapshotPortal

type FileShareSnapshotPortal struct {
	BasePortal

	CtrClient client.Client
}

func NewFileShareSnapshotPortal

func NewFileShareSnapshotPortal() *FileShareSnapshotPortal

func (*FileShareSnapshotPortal) CreateFileShareSnapshot

func (f *FileShareSnapshotPortal) CreateFileShareSnapshot()

func (*FileShareSnapshotPortal) DeleteFileShareSnapshot

func (f *FileShareSnapshotPortal) DeleteFileShareSnapshot()

func (*FileShareSnapshotPortal) GetFileShareSnapshot

func (f *FileShareSnapshotPortal) GetFileShareSnapshot()

func (*FileShareSnapshotPortal) ListFileShareSnapshots

func (f *FileShareSnapshotPortal) ListFileShareSnapshots()

func (*FileShareSnapshotPortal) UpdateFileShareSnapshot

func (f *FileShareSnapshotPortal) UpdateFileShareSnapshot()

type MetricsPortal

type MetricsPortal struct {
	BasePortal

	CtrClient client.Client
}

func NewMetricsPortal

func NewMetricsPortal() *MetricsPortal

func (*MetricsPortal) CollectMetrics added in v0.5.3

func (m *MetricsPortal) CollectMetrics()

func (*MetricsPortal) DownloadConfFile

func (m *MetricsPortal) DownloadConfFile()

func (*MetricsPortal) GetMetrics

func (m *MetricsPortal) GetMetrics()

func (*MetricsPortal) GetUrls added in v0.5.3

func (m *MetricsPortal) GetUrls()

func (*MetricsPortal) UploadConfFile

func (m *MetricsPortal) UploadConfFile()

type PoolPortal

type PoolPortal struct {
	BasePortal
}

func (*PoolPortal) GetPool

func (p *PoolPortal) GetPool()

func (*PoolPortal) ListAvailabilityZones

func (p *PoolPortal) ListAvailabilityZones()

func (*PoolPortal) ListPools

func (p *PoolPortal) ListPools()

type ProfilePortal

type ProfilePortal struct {
	BasePortal
}

func (*ProfilePortal) AddCustomProperty

func (p *ProfilePortal) AddCustomProperty()

func (*ProfilePortal) CreateProfile

func (p *ProfilePortal) CreateProfile()

func (*ProfilePortal) DeleteProfile

func (p *ProfilePortal) DeleteProfile()

func (*ProfilePortal) GetProfile

func (p *ProfilePortal) GetProfile()

func (*ProfilePortal) ListCustomProperties

func (p *ProfilePortal) ListCustomProperties()

func (*ProfilePortal) ListProfiles

func (p *ProfilePortal) ListProfiles()

func (*ProfilePortal) RemoveCustomProperty

func (p *ProfilePortal) RemoveCustomProperty()

func (*ProfilePortal) UpdateProfile

func (p *ProfilePortal) UpdateProfile()

type ReplicationPortal

type ReplicationPortal struct {
	BasePortal

	CtrClient client.Client
}

func NewReplicationPortal

func NewReplicationPortal() *ReplicationPortal

func (*ReplicationPortal) CreateReplication

func (r *ReplicationPortal) CreateReplication()

func (*ReplicationPortal) DeleteReplication

func (r *ReplicationPortal) DeleteReplication()

func (*ReplicationPortal) DisableReplication

func (r *ReplicationPortal) DisableReplication()

func (*ReplicationPortal) EnableReplication

func (r *ReplicationPortal) EnableReplication()

func (*ReplicationPortal) FailoverReplication

func (r *ReplicationPortal) FailoverReplication()

func (*ReplicationPortal) GetReplication

func (r *ReplicationPortal) GetReplication()

func (*ReplicationPortal) ListReplications

func (r *ReplicationPortal) ListReplications()

func (*ReplicationPortal) ListReplicationsDetail

func (r *ReplicationPortal) ListReplicationsDetail()

func (*ReplicationPortal) UpdateReplication

func (r *ReplicationPortal) UpdateReplication()

type VersionPortal

type VersionPortal struct {
	BasePortal
}

VersionPortal

func (*VersionPortal) GetVersion

func (v *VersionPortal) GetVersion()

GetVersion

func (*VersionPortal) ListVersions

func (v *VersionPortal) ListVersions()

ListVersions

type VolumeAttachmentPortal

type VolumeAttachmentPortal struct {
	BasePortal

	CtrClient client.Client
}

func NewVolumeAttachmentPortal

func NewVolumeAttachmentPortal() *VolumeAttachmentPortal

func (*VolumeAttachmentPortal) CreateVolumeAttachment

func (v *VolumeAttachmentPortal) CreateVolumeAttachment()

func (*VolumeAttachmentPortal) DeleteVolumeAttachment

func (v *VolumeAttachmentPortal) DeleteVolumeAttachment()

func (*VolumeAttachmentPortal) GetVolumeAttachment

func (v *VolumeAttachmentPortal) GetVolumeAttachment()

func (*VolumeAttachmentPortal) ListVolumeAttachments

func (v *VolumeAttachmentPortal) ListVolumeAttachments()

func (*VolumeAttachmentPortal) UpdateVolumeAttachment

func (v *VolumeAttachmentPortal) UpdateVolumeAttachment()

type VolumeGroupPortal

type VolumeGroupPortal struct {
	BasePortal

	CtrClient client.Client
}

func NewVolumeGroupPortal

func NewVolumeGroupPortal() *VolumeGroupPortal

func (*VolumeGroupPortal) CreateVolumeGroup

func (v *VolumeGroupPortal) CreateVolumeGroup()

func (*VolumeGroupPortal) DeleteVolumeGroup

func (v *VolumeGroupPortal) DeleteVolumeGroup()

func (*VolumeGroupPortal) GetVolumeGroup

func (v *VolumeGroupPortal) GetVolumeGroup()

func (*VolumeGroupPortal) ListVolumeGroups

func (v *VolumeGroupPortal) ListVolumeGroups()

func (*VolumeGroupPortal) UpdateVolumeGroup

func (v *VolumeGroupPortal) UpdateVolumeGroup()

type VolumePortal

type VolumePortal struct {
	BasePortal

	CtrClient client.Client
}

func NewVolumePortal

func NewVolumePortal() *VolumePortal

func (*VolumePortal) CreateVolume

func (v *VolumePortal) CreateVolume()

func (*VolumePortal) DeleteVolume

func (v *VolumePortal) DeleteVolume()

func (*VolumePortal) ExtendVolume

func (v *VolumePortal) ExtendVolume()

ExtendVolume ...

func (*VolumePortal) GetVolume

func (v *VolumePortal) GetVolume()

func (*VolumePortal) ListVolumes

func (v *VolumePortal) ListVolumes()

func (*VolumePortal) UpdateVolume

func (v *VolumePortal) UpdateVolume()

type VolumeSnapshotPortal

type VolumeSnapshotPortal struct {
	BasePortal

	CtrClient client.Client
}

func NewVolumeSnapshotPortal

func NewVolumeSnapshotPortal() *VolumeSnapshotPortal

func (*VolumeSnapshotPortal) CreateVolumeSnapshot

func (v *VolumeSnapshotPortal) CreateVolumeSnapshot()

func (*VolumeSnapshotPortal) DeleteVolumeSnapshot

func (v *VolumeSnapshotPortal) DeleteVolumeSnapshot()

func (*VolumeSnapshotPortal) GetVolumeSnapshot

func (v *VolumeSnapshotPortal) GetVolumeSnapshot()

func (*VolumeSnapshotPortal) ListVolumeSnapshots

func (v *VolumeSnapshotPortal) ListVolumeSnapshots()

func (*VolumeSnapshotPortal) UpdateVolumeSnapshot

func (v *VolumeSnapshotPortal) UpdateVolumeSnapshot()

Jump to

Keyboard shortcuts

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