Documentation ¶
Overview ¶
Package quota is a generated protocol buffer package.
It is generated from these files:
quota/quota.proto
It has these top-level messages:
QuotaInfo QuotaRequest QuotaStatus
Index ¶
- Constants
- Variables
- type QuotaInfo
- func (*QuotaInfo) Descriptor() ([]byte, []int)
- func (this *QuotaInfo) Equal(that interface{}) bool
- func (m *QuotaInfo) GetGuarantee() []mesos.Resource
- func (m *QuotaInfo) GetPrincipal() string
- func (m *QuotaInfo) GetRole() string
- func (this *QuotaInfo) GoString() string
- func (m *QuotaInfo) Marshal() (dAtA []byte, err error)
- func (mj *QuotaInfo) MarshalJSON() ([]byte, error)
- func (mj *QuotaInfo) MarshalJSONBuf(buf fflib.EncodingBuffer) error
- func (m *QuotaInfo) MarshalTo(dAtA []byte) (int, error)
- func (*QuotaInfo) ProtoMessage()
- func (m *QuotaInfo) ProtoSize() (n int)
- func (m *QuotaInfo) Reset()
- func (this *QuotaInfo) String() string
- func (m *QuotaInfo) Unmarshal(dAtA []byte) error
- func (uj *QuotaInfo) UnmarshalJSON(input []byte) error
- func (uj *QuotaInfo) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error
- func (this *QuotaInfo) VerboseEqual(that interface{}) error
- type QuotaRequest
- func (*QuotaRequest) Descriptor() ([]byte, []int)
- func (this *QuotaRequest) Equal(that interface{}) bool
- func (m *QuotaRequest) GetForce() bool
- func (m *QuotaRequest) GetGuarantee() []mesos.Resource
- func (m *QuotaRequest) GetRole() string
- func (this *QuotaRequest) GoString() string
- func (m *QuotaRequest) Marshal() (dAtA []byte, err error)
- func (mj *QuotaRequest) MarshalJSON() ([]byte, error)
- func (mj *QuotaRequest) MarshalJSONBuf(buf fflib.EncodingBuffer) error
- func (m *QuotaRequest) MarshalTo(dAtA []byte) (int, error)
- func (*QuotaRequest) ProtoMessage()
- func (m *QuotaRequest) ProtoSize() (n int)
- func (m *QuotaRequest) Reset()
- func (this *QuotaRequest) String() string
- func (m *QuotaRequest) Unmarshal(dAtA []byte) error
- func (uj *QuotaRequest) UnmarshalJSON(input []byte) error
- func (uj *QuotaRequest) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error
- func (this *QuotaRequest) VerboseEqual(that interface{}) error
- type QuotaStatus
- func (*QuotaStatus) Descriptor() ([]byte, []int)
- func (this *QuotaStatus) Equal(that interface{}) bool
- func (m *QuotaStatus) GetInfos() []QuotaInfo
- func (this *QuotaStatus) GoString() string
- func (m *QuotaStatus) Marshal() (dAtA []byte, err error)
- func (mj *QuotaStatus) MarshalJSON() ([]byte, error)
- func (mj *QuotaStatus) MarshalJSONBuf(buf fflib.EncodingBuffer) error
- func (m *QuotaStatus) MarshalTo(dAtA []byte) (int, error)
- func (*QuotaStatus) ProtoMessage()
- func (m *QuotaStatus) ProtoSize() (n int)
- func (m *QuotaStatus) Reset()
- func (this *QuotaStatus) String() string
- func (m *QuotaStatus) Unmarshal(dAtA []byte) error
- func (uj *QuotaStatus) UnmarshalJSON(input []byte) error
- func (uj *QuotaStatus) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error
- func (this *QuotaStatus) VerboseEqual(that interface{}) error
Constants ¶
View Source
const Default_QuotaRequest_Force bool = false
Variables ¶
View Source
var ( ErrInvalidLengthQuota = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuota = fmt.Errorf("proto: integer overflow") )
Functions ¶
This section is empty.
Types ¶
type QuotaInfo ¶
type QuotaInfo struct { // Quota is granted per role and not per framework, similar to // dynamic reservations. Role *string `protobuf:"bytes,1,opt,name=role" json:"role,omitempty"` // Principal which set the quota. Currently only operators can set quotas. Principal *string `protobuf:"bytes,2,opt,name=principal" json:"principal,omitempty"` // The guarantee that these resources are allocatable for the above role. // NOTE: `guarantee.role` should not specify any role except '*', // because quota does not reserve specific resources. Guarantee []mesos.Resource `protobuf:"bytes,3,rep,name=guarantee" json:"guarantee"` }
TODO(joerg84): Add limits, i.e. upper bounds of resources that a role is allowed to use.
func NewPopulatedQuotaInfo ¶
func (*QuotaInfo) Descriptor ¶
func (*QuotaInfo) GetGuarantee ¶
func (*QuotaInfo) GetPrincipal ¶
func (*QuotaInfo) MarshalJSON ¶
func (*QuotaInfo) MarshalJSONBuf ¶
func (mj *QuotaInfo) MarshalJSONBuf(buf fflib.EncodingBuffer) error
func (*QuotaInfo) ProtoMessage ¶
func (*QuotaInfo) ProtoMessage()
func (*QuotaInfo) UnmarshalJSON ¶
func (*QuotaInfo) UnmarshalJSONFFLexer ¶
func (*QuotaInfo) VerboseEqual ¶
type QuotaRequest ¶
type QuotaRequest struct { // Disables the capacity heuristic check if set to `true`. Force *bool `protobuf:"varint,1,opt,name=force,def=0" json:"force,omitempty"` // The role for which to set quota. Role *string `protobuf:"bytes,2,opt,name=role" json:"role,omitempty"` // The requested guarantee that these resources will be allocatable for // the above role. Guarantee []mesos.Resource `protobuf:"bytes,3,rep,name=guarantee" json:"guarantee"` }
* `QuotaRequest` provides a schema for set quota JSON requests.
func NewPopulatedQuotaRequest ¶
func NewPopulatedQuotaRequest(r randyQuota, easy bool) *QuotaRequest
func (*QuotaRequest) Descriptor ¶
func (*QuotaRequest) Descriptor() ([]byte, []int)
func (*QuotaRequest) Equal ¶
func (this *QuotaRequest) Equal(that interface{}) bool
func (*QuotaRequest) GetForce ¶
func (m *QuotaRequest) GetForce() bool
func (*QuotaRequest) GetGuarantee ¶
func (m *QuotaRequest) GetGuarantee() []mesos.Resource
func (*QuotaRequest) GetRole ¶
func (m *QuotaRequest) GetRole() string
func (*QuotaRequest) GoString ¶
func (this *QuotaRequest) GoString() string
func (*QuotaRequest) Marshal ¶
func (m *QuotaRequest) Marshal() (dAtA []byte, err error)
func (*QuotaRequest) MarshalJSON ¶
func (mj *QuotaRequest) MarshalJSON() ([]byte, error)
func (*QuotaRequest) MarshalJSONBuf ¶
func (mj *QuotaRequest) MarshalJSONBuf(buf fflib.EncodingBuffer) error
func (*QuotaRequest) ProtoMessage ¶
func (*QuotaRequest) ProtoMessage()
func (*QuotaRequest) ProtoSize ¶
func (m *QuotaRequest) ProtoSize() (n int)
func (*QuotaRequest) Reset ¶
func (m *QuotaRequest) Reset()
func (*QuotaRequest) String ¶
func (this *QuotaRequest) String() string
func (*QuotaRequest) Unmarshal ¶
func (m *QuotaRequest) Unmarshal(dAtA []byte) error
func (*QuotaRequest) UnmarshalJSON ¶
func (uj *QuotaRequest) UnmarshalJSON(input []byte) error
func (*QuotaRequest) UnmarshalJSONFFLexer ¶
func (uj *QuotaRequest) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error
func (*QuotaRequest) VerboseEqual ¶
func (this *QuotaRequest) VerboseEqual(that interface{}) error
type QuotaStatus ¶
type QuotaStatus struct { // Quotas which are currently set, i.e. known to the master. Infos []QuotaInfo `protobuf:"bytes,1,rep,name=infos" json:"infos"` }
* `QuotaStatus` describes the internal representation for the /quota/status response.
func NewPopulatedQuotaStatus ¶
func NewPopulatedQuotaStatus(r randyQuota, easy bool) *QuotaStatus
func (*QuotaStatus) Descriptor ¶
func (*QuotaStatus) Descriptor() ([]byte, []int)
func (*QuotaStatus) Equal ¶
func (this *QuotaStatus) Equal(that interface{}) bool
func (*QuotaStatus) GetInfos ¶
func (m *QuotaStatus) GetInfos() []QuotaInfo
func (*QuotaStatus) GoString ¶
func (this *QuotaStatus) GoString() string
func (*QuotaStatus) Marshal ¶
func (m *QuotaStatus) Marshal() (dAtA []byte, err error)
func (*QuotaStatus) MarshalJSON ¶
func (mj *QuotaStatus) MarshalJSON() ([]byte, error)
func (*QuotaStatus) MarshalJSONBuf ¶
func (mj *QuotaStatus) MarshalJSONBuf(buf fflib.EncodingBuffer) error
func (*QuotaStatus) ProtoMessage ¶
func (*QuotaStatus) ProtoMessage()
func (*QuotaStatus) ProtoSize ¶
func (m *QuotaStatus) ProtoSize() (n int)
func (*QuotaStatus) Reset ¶
func (m *QuotaStatus) Reset()
func (*QuotaStatus) String ¶
func (this *QuotaStatus) String() string
func (*QuotaStatus) Unmarshal ¶
func (m *QuotaStatus) Unmarshal(dAtA []byte) error
func (*QuotaStatus) UnmarshalJSON ¶
func (uj *QuotaStatus) UnmarshalJSON(input []byte) error
func (*QuotaStatus) UnmarshalJSONFFLexer ¶
func (uj *QuotaStatus) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error
func (*QuotaStatus) VerboseEqual ¶
func (this *QuotaStatus) VerboseEqual(that interface{}) error
Click to show internal directories.
Click to hide internal directories.