models

package
v0.0.43 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2016 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CEPH_API_DEFAULT_PREFIX  = "api"
	CEPH_API_PORT            = 8002
	CEPH_API_DEFAULT_VERSION = 2
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CephAsyncRequest

type CephAsyncRequest struct {
	RequestId string `json:"request_id"`
}

type CephCluster

type CephCluster struct {
	Name       string `json:"name"`
	Id         string `json:"id"`
	UpdateTime string `json:"update_time"`
}

type CephCommandResponse

type CephCommandResponse struct {
	Out    string `json:"out"`
	Error  string `json:"err"`
	Status int    `json:"status"`
}

type CephPoolRequest

type CephPoolRequest struct {
	Name                string `json:"name"`
	Size                int    `json:"size"`
	MinSize             uint64 `json:"min_size"`
	QuotaMaxObjects     int    `json:"quota_max_objects"`
	HashPsPool          bool   `json:"hashpspool"`
	QuotaMaxBytes       uint64 `json:"quota_max_bytes"`
	PgNum               int    `json:"pg_num"`
	PgpNum              int    `json:"pgp_num"`
	CrashReplayInterval int    `json:"crash_replay_interval"`
	CrushRuleSet        int    `json:"crush_ruleset"`
}

type CephRequestStatus

type CephRequestStatus struct {
	Id           string `json:"id"`
	State        string `json:"state"`
	Headline     string `json:"headline"`
	Status       string `json:"status"`
	Error        bool   `json:"error"`
	ErrorMessage string `json:"error_message"`
}

Jump to

Keyboard shortcuts

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