Documentation ¶
Index ¶
- Variables
- func AttributesSubsetOf(a, b Attributes) bool
- type Attribute
- func (*Attribute) Descriptor() ([]byte, []int)
- func (m *Attribute) Equal(rhs *Attribute) bool
- func (m *Attribute) Marshal() (dAtA []byte, err error)
- func (m *Attribute) MarshalTo(dAtA []byte) (int, error)
- func (m *Attribute) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Attribute) ProtoMessage()
- func (m *Attribute) Reset()
- func (m *Attribute) Size() (n int)
- func (m *Attribute) String() string
- func (m Attribute) SubsetOf(rhs Attribute) bool
- func (m *Attribute) Unmarshal(dAtA []byte) error
- func (m *Attribute) XXX_DiscardUnknown()
- func (m *Attribute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Attribute) XXX_Merge(src proto.Message)
- func (m *Attribute) XXX_Size() int
- func (m *Attribute) XXX_Unmarshal(b []byte) error
- type AttributeValue
- type Attributes
- type CPU
- func (*CPU) Descriptor() ([]byte, []int)
- func (this *CPU) Equal(that interface{}) bool
- func (m *CPU) GetAttributes() []Attribute
- func (m *CPU) GetUnits() ResourceValue
- func (m *CPU) Marshal() (dAtA []byte, err error)
- func (m *CPU) MarshalTo(dAtA []byte) (int, error)
- func (m *CPU) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CPU) ProtoMessage()
- func (m *CPU) Reset()
- func (m *CPU) Size() (n int)
- func (m *CPU) String() string
- func (m *CPU) Unmarshal(dAtA []byte) error
- func (m *CPU) XXX_DiscardUnknown()
- func (m *CPU) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CPU) XXX_Merge(src proto.Message)
- func (m *CPU) XXX_Size() int
- func (m *CPU) XXX_Unmarshal(b []byte) error
- type Endpoint
- func (*Endpoint) Descriptor() ([]byte, []int)
- func (this *Endpoint) Equal(that interface{}) bool
- func (m *Endpoint) GetKind() Endpoint_Kind
- func (m *Endpoint) Marshal() (dAtA []byte, err error)
- func (m *Endpoint) MarshalTo(dAtA []byte) (int, error)
- func (m *Endpoint) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Endpoint) ProtoMessage()
- func (m *Endpoint) Reset()
- func (m *Endpoint) Size() (n int)
- func (m *Endpoint) String() string
- func (m *Endpoint) Unmarshal(dAtA []byte) error
- func (m *Endpoint) XXX_DiscardUnknown()
- func (m *Endpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Endpoint) XXX_Merge(src proto.Message)
- func (m *Endpoint) XXX_Size() int
- func (m *Endpoint) XXX_Unmarshal(b []byte) error
- type Endpoint_Kind
- type Memory
- func (*Memory) Descriptor() ([]byte, []int)
- func (this *Memory) Equal(that interface{}) bool
- func (m *Memory) GetAttributes() []Attribute
- func (m *Memory) GetQuantity() ResourceValue
- func (m *Memory) Marshal() (dAtA []byte, err error)
- func (m *Memory) MarshalTo(dAtA []byte) (int, error)
- func (m *Memory) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Memory) ProtoMessage()
- func (m *Memory) Reset()
- func (m *Memory) Size() (n int)
- func (m *Memory) String() string
- func (m *Memory) Unmarshal(dAtA []byte) error
- func (m *Memory) XXX_DiscardUnknown()
- func (m *Memory) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Memory) XXX_Merge(src proto.Message)
- func (m *Memory) XXX_Size() int
- func (m *Memory) XXX_Unmarshal(b []byte) error
- type PlacementRequirements
- func (*PlacementRequirements) Descriptor() ([]byte, []int)
- func (m *PlacementRequirements) Marshal() (dAtA []byte, err error)
- func (m *PlacementRequirements) MarshalTo(dAtA []byte) (int, error)
- func (m *PlacementRequirements) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PlacementRequirements) ProtoMessage()
- func (m *PlacementRequirements) Reset()
- func (m *PlacementRequirements) Size() (n int)
- func (m *PlacementRequirements) String() string
- func (m *PlacementRequirements) Unmarshal(dAtA []byte) error
- func (m *PlacementRequirements) XXX_DiscardUnknown()
- func (m *PlacementRequirements) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PlacementRequirements) XXX_Merge(src proto.Message)
- func (m *PlacementRequirements) XXX_Size() int
- func (m *PlacementRequirements) XXX_Unmarshal(b []byte) error
- type ResUnit
- type ResourceGroup
- type ResourceUnits
- func (m ResourceUnits) Add(rhs ResourceUnits) (ResourceUnits, error)
- func (*ResourceUnits) Descriptor() ([]byte, []int)
- func (this *ResourceUnits) Equal(that interface{}) bool
- func (m ResourceUnits) Equals(rhs ResourceUnits) bool
- func (m *ResourceUnits) GetCPU() *CPU
- func (m *ResourceUnits) GetEndpoints() []Endpoint
- func (m *ResourceUnits) GetMemory() *Memory
- func (m *ResourceUnits) GetStorage() *Storage
- func (m *ResourceUnits) Marshal() (dAtA []byte, err error)
- func (m *ResourceUnits) MarshalTo(dAtA []byte) (int, error)
- func (m *ResourceUnits) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ResourceUnits) ProtoMessage()
- func (m *ResourceUnits) Reset()
- func (m *ResourceUnits) Size() (n int)
- func (m *ResourceUnits) String() string
- func (m ResourceUnits) Sub(rhs ResourceUnits) (ResourceUnits, error)
- func (m *ResourceUnits) Unmarshal(dAtA []byte) error
- func (m *ResourceUnits) XXX_DiscardUnknown()
- func (m *ResourceUnits) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ResourceUnits) XXX_Merge(src proto.Message)
- func (m *ResourceUnits) XXX_Size() int
- func (m *ResourceUnits) XXX_Unmarshal(b []byte) error
- type ResourceValue
- func (*ResourceValue) Descriptor() ([]byte, []int)
- func (this *ResourceValue) Equal(that interface{}) bool
- func (m *ResourceValue) Marshal() (dAtA []byte, err error)
- func (m *ResourceValue) MarshalTo(dAtA []byte) (int, error)
- func (m *ResourceValue) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ResourceValue) ProtoMessage()
- func (m *ResourceValue) Reset()
- func (m *ResourceValue) Size() (n int)
- func (m *ResourceValue) String() string
- func (m *ResourceValue) Unmarshal(dAtA []byte) error
- func (m ResourceValue) Value() uint64
- func (m *ResourceValue) XXX_DiscardUnknown()
- func (m *ResourceValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ResourceValue) XXX_Merge(src proto.Message)
- func (m *ResourceValue) XXX_Size() int
- func (m *ResourceValue) XXX_Unmarshal(b []byte) error
- type Resources
- type SignedBy
- func (*SignedBy) Descriptor() ([]byte, []int)
- func (m *SignedBy) Marshal() (dAtA []byte, err error)
- func (m *SignedBy) MarshalTo(dAtA []byte) (int, error)
- func (m *SignedBy) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SignedBy) ProtoMessage()
- func (m *SignedBy) Reset()
- func (m *SignedBy) Size() (n int)
- func (m *SignedBy) String() string
- func (m *SignedBy) Unmarshal(dAtA []byte) error
- func (m *SignedBy) XXX_DiscardUnknown()
- func (m *SignedBy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SignedBy) XXX_Merge(src proto.Message)
- func (m *SignedBy) XXX_Size() int
- func (m *SignedBy) XXX_Unmarshal(b []byte) error
- type Storage
- func (*Storage) Descriptor() ([]byte, []int)
- func (this *Storage) Equal(that interface{}) bool
- func (m *Storage) GetAttributes() []Attribute
- func (m *Storage) GetQuantity() ResourceValue
- func (m *Storage) Marshal() (dAtA []byte, err error)
- func (m *Storage) MarshalTo(dAtA []byte) (int, error)
- func (m *Storage) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Storage) ProtoMessage()
- func (m *Storage) Reset()
- func (m *Storage) Size() (n int)
- func (m *Storage) String() string
- func (m *Storage) Unmarshal(dAtA []byte) error
- func (m *Storage) XXX_DiscardUnknown()
- func (m *Storage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Storage) XXX_Merge(src proto.Message)
- func (m *Storage) XXX_Size() int
- func (m *Storage) XXX_Unmarshal(b []byte) error
- type Unit
- type UnitType
Constants ¶
This section is empty.
Variables ¶
var ( ErrAttributesDuplicateKeys = sdkerrors.Register(moduleName, errAttributesDuplicateKeys, "attributes cannot have duplicate keys") ErrInvalidAttributeKey = sdkerrors.Register(moduleName, errInvalidAttributeKey, "attribute key does not match regexp "+attributeNameRegexpString) )
var ( ErrInvalidLengthAttribute = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowAttribute = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupAttribute = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthEndpoint = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowEndpoint = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupEndpoint = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthResource = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowResource = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupResource = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthResourcevalue = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowResourcevalue = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupResourcevalue = fmt.Errorf("proto: unexpected end of group") )
var Endpoint_Kind_name = map[int32]string{
0: "SHARED_HTTP",
1: "RANDOM_PORT",
}
var Endpoint_Kind_value = map[string]int32{
"SHARED_HTTP": 0,
"RANDOM_PORT": 1,
}
Functions ¶
func AttributesSubsetOf ¶ added in v0.9.1
func AttributesSubsetOf(a, b Attributes) bool
AttributesSubsetOf check if a is subset of that For example there are two yaml files being converted into these attributes example 1: a is subset of b --- // a attributes:
region: - us-east-1
--- b attributes:
region: - us-east-1 - us-east-2
example 2: a is not subset of b attributes:
region: - us-east-1
--- b attributes:
region: - us-east-2 - us-east-3
example 3: a is subset of b attributes:
region: - us-east-2 - us-east-3
--- b attributes:
region: - us-east-2
Types ¶
type Attribute ¶ added in v0.9.1
type Attribute struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty" yaml:"key"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty" yaml:"value"` }
Attribute represents key value pair
func NewStringAttribute ¶ added in v0.9.1
func (*Attribute) Descriptor ¶ added in v0.9.1
func (*Attribute) MarshalToSizedBuffer ¶ added in v0.9.1
func (*Attribute) ProtoMessage ¶ added in v0.9.1
func (*Attribute) ProtoMessage()
func (*Attribute) XXX_DiscardUnknown ¶ added in v0.9.1
func (m *Attribute) XXX_DiscardUnknown()
func (*Attribute) XXX_Marshal ¶ added in v0.9.1
func (*Attribute) XXX_Unmarshal ¶ added in v0.9.1
type AttributeValue ¶ added in v0.9.1
type AttributeValue string
type Attributes ¶ added in v0.9.1
type Attributes []Attribute
Attributes purpose of using this type in favor of Cosmos's sdk.Attribute is ability to later extend it with operators to support querying on things like cpu/memory/storage attributes At this moment type though is same as sdk.Attributes but all akash libraries were turned to use a new one
func (Attributes) SubsetOf ¶ added in v0.9.1
func (attr Attributes) SubsetOf(that Attributes) bool
func (Attributes) Validate ¶ added in v0.9.1
func (attr Attributes) Validate() error
type CPU ¶ added in v0.9.1
type CPU struct { Units ResourceValue `protobuf:"bytes,1,opt,name=units,proto3" json:"units"` Attributes []Attribute `protobuf:"bytes,2,rep,name=attributes,proto3" json:"attributes,omitempty" yaml:"cpu,omitempty"` }
CPU stores resource units and cpu config attributes
func (*CPU) Descriptor ¶ added in v0.9.1
func (*CPU) GetAttributes ¶ added in v0.9.1
func (*CPU) GetUnits ¶ added in v0.9.1
func (m *CPU) GetUnits() ResourceValue
func (*CPU) MarshalToSizedBuffer ¶ added in v0.9.1
func (*CPU) ProtoMessage ¶ added in v0.9.1
func (*CPU) ProtoMessage()
func (*CPU) XXX_DiscardUnknown ¶ added in v0.9.1
func (m *CPU) XXX_DiscardUnknown()
func (*CPU) XXX_Marshal ¶ added in v0.9.1
func (*CPU) XXX_Unmarshal ¶ added in v0.9.1
type Endpoint ¶ added in v0.9.1
type Endpoint struct {
Kind Endpoint_Kind `protobuf:"varint,1,opt,name=kind,proto3,enum=akash.base.v1beta1.Endpoint_Kind" json:"kind,omitempty"`
}
Endpoint describes a publicly accessible IP service
func (*Endpoint) Descriptor ¶ added in v0.9.1
func (*Endpoint) GetKind ¶ added in v0.9.3
func (m *Endpoint) GetKind() Endpoint_Kind
func (*Endpoint) MarshalToSizedBuffer ¶ added in v0.9.1
func (*Endpoint) ProtoMessage ¶ added in v0.9.1
func (*Endpoint) ProtoMessage()
func (*Endpoint) XXX_DiscardUnknown ¶ added in v0.9.1
func (m *Endpoint) XXX_DiscardUnknown()
func (*Endpoint) XXX_Marshal ¶ added in v0.9.1
func (*Endpoint) XXX_Unmarshal ¶ added in v0.9.1
type Endpoint_Kind ¶ added in v0.9.3
type Endpoint_Kind int32
This describes how the endpoint is implemented when the lease is deployed
const ( // Describes an endpoint that becomes a Kubernetes Ingress Endpoint_SHARED_HTTP Endpoint_Kind = 0 // Describes an endpoint that becomes a Kubernetes NodePort Endpoint_RANDOM_PORT Endpoint_Kind = 1 )
func (Endpoint_Kind) EnumDescriptor ¶ added in v0.9.3
func (Endpoint_Kind) EnumDescriptor() ([]byte, []int)
func (Endpoint_Kind) String ¶ added in v0.9.3
func (x Endpoint_Kind) String() string
type Memory ¶ added in v0.9.1
type Memory struct { Quantity ResourceValue `protobuf:"bytes,1,opt,name=quantity,proto3" json:"size" yaml:"size"` Attributes []Attribute `protobuf:"bytes,2,rep,name=attributes,proto3" json:"attributes,omitempty" yaml:"cpu,omitempty"` }
Memory stores resource quantity and memory attributes
func (*Memory) Descriptor ¶ added in v0.9.1
func (*Memory) GetAttributes ¶ added in v0.9.1
func (*Memory) GetQuantity ¶ added in v0.9.1
func (m *Memory) GetQuantity() ResourceValue
func (*Memory) MarshalToSizedBuffer ¶ added in v0.9.1
func (*Memory) ProtoMessage ¶ added in v0.9.1
func (*Memory) ProtoMessage()
func (*Memory) XXX_DiscardUnknown ¶ added in v0.9.1
func (m *Memory) XXX_DiscardUnknown()
func (*Memory) XXX_Marshal ¶ added in v0.9.1
func (*Memory) XXX_Unmarshal ¶ added in v0.9.1
type PlacementRequirements ¶ added in v0.9.1
type PlacementRequirements struct { // SignedBy list of keys that tenants expect to have signatures from SignedBy SignedBy `protobuf:"bytes,1,opt,name=signed_by,json=signedBy,proto3" json:"signed_by" yaml:"signed_by"` // Attribute list of attributes tenant expects from the provider Attributes []Attribute `protobuf:"bytes,2,rep,name=attributes,proto3" json:"attributes" yaml:"attributes"` }
PlacementRequirements
func (*PlacementRequirements) Descriptor ¶ added in v0.9.1
func (*PlacementRequirements) Descriptor() ([]byte, []int)
func (*PlacementRequirements) Marshal ¶ added in v0.9.1
func (m *PlacementRequirements) Marshal() (dAtA []byte, err error)
func (*PlacementRequirements) MarshalTo ¶ added in v0.9.1
func (m *PlacementRequirements) MarshalTo(dAtA []byte) (int, error)
func (*PlacementRequirements) MarshalToSizedBuffer ¶ added in v0.9.1
func (m *PlacementRequirements) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PlacementRequirements) ProtoMessage ¶ added in v0.9.1
func (*PlacementRequirements) ProtoMessage()
func (*PlacementRequirements) Reset ¶ added in v0.9.1
func (m *PlacementRequirements) Reset()
func (*PlacementRequirements) Size ¶ added in v0.9.1
func (m *PlacementRequirements) Size() (n int)
func (*PlacementRequirements) String ¶ added in v0.9.1
func (m *PlacementRequirements) String() string
func (*PlacementRequirements) Unmarshal ¶ added in v0.9.1
func (m *PlacementRequirements) Unmarshal(dAtA []byte) error
func (*PlacementRequirements) XXX_DiscardUnknown ¶ added in v0.9.1
func (m *PlacementRequirements) XXX_DiscardUnknown()
func (*PlacementRequirements) XXX_Marshal ¶ added in v0.9.1
func (m *PlacementRequirements) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PlacementRequirements) XXX_Merge ¶ added in v0.9.1
func (m *PlacementRequirements) XXX_Merge(src proto.Message)
func (*PlacementRequirements) XXX_Size ¶ added in v0.9.1
func (m *PlacementRequirements) XXX_Size() int
func (*PlacementRequirements) XXX_Unmarshal ¶ added in v0.9.1
func (m *PlacementRequirements) XXX_Unmarshal(b []byte) error
type ResourceGroup ¶
ResourceGroup is the interface that wraps GetName and GetResources methods
type ResourceUnits ¶ added in v0.9.1
type ResourceUnits struct { CPU *CPU `protobuf:"bytes,1,opt,name=cpu,proto3" json:"cpu,omitempty" yaml:"cpu,omitempty"` Memory *Memory `protobuf:"bytes,2,opt,name=memory,proto3" json:"memory,omitempty" yaml:"memory,omitempty"` Storage *Storage `protobuf:"bytes,3,opt,name=storage,proto3" json:"storage,omitempty" yaml:"storage,omitempty"` Endpoints []Endpoint `protobuf:"bytes,4,rep,name=endpoints,proto3" json:"endpoints" yaml:"endpoints"` }
ResourceUnits describes all available resources types for deployment/node etc if field is nil resource is not present in the given data-structure
func (ResourceUnits) Add ¶ added in v0.9.1
func (m ResourceUnits) Add(rhs ResourceUnits) (ResourceUnits, error)
AddUnit it rather searches for existing entry of the same type and sums values if type not found it appends
func (*ResourceUnits) Descriptor ¶ added in v0.9.1
func (*ResourceUnits) Descriptor() ([]byte, []int)
func (*ResourceUnits) Equal ¶ added in v0.9.1
func (this *ResourceUnits) Equal(that interface{}) bool
func (ResourceUnits) Equals ¶ added in v0.9.1
func (m ResourceUnits) Equals(rhs ResourceUnits) bool
func (*ResourceUnits) GetCPU ¶ added in v0.9.1
func (m *ResourceUnits) GetCPU() *CPU
func (*ResourceUnits) GetEndpoints ¶ added in v0.9.1
func (m *ResourceUnits) GetEndpoints() []Endpoint
func (*ResourceUnits) GetMemory ¶ added in v0.9.1
func (m *ResourceUnits) GetMemory() *Memory
func (*ResourceUnits) GetStorage ¶ added in v0.9.1
func (m *ResourceUnits) GetStorage() *Storage
func (*ResourceUnits) Marshal ¶ added in v0.9.1
func (m *ResourceUnits) Marshal() (dAtA []byte, err error)
func (*ResourceUnits) MarshalTo ¶ added in v0.9.1
func (m *ResourceUnits) MarshalTo(dAtA []byte) (int, error)
func (*ResourceUnits) MarshalToSizedBuffer ¶ added in v0.9.1
func (m *ResourceUnits) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ResourceUnits) ProtoMessage ¶ added in v0.9.1
func (*ResourceUnits) ProtoMessage()
func (*ResourceUnits) Reset ¶ added in v0.9.1
func (m *ResourceUnits) Reset()
func (*ResourceUnits) Size ¶ added in v0.9.1
func (m *ResourceUnits) Size() (n int)
func (*ResourceUnits) String ¶ added in v0.9.1
func (m *ResourceUnits) String() string
func (ResourceUnits) Sub ¶ added in v0.9.1
func (m ResourceUnits) Sub(rhs ResourceUnits) (ResourceUnits, error)
Sub tbd
func (*ResourceUnits) Unmarshal ¶ added in v0.9.1
func (m *ResourceUnits) Unmarshal(dAtA []byte) error
func (*ResourceUnits) XXX_DiscardUnknown ¶ added in v0.9.1
func (m *ResourceUnits) XXX_DiscardUnknown()
func (*ResourceUnits) XXX_Marshal ¶ added in v0.9.1
func (m *ResourceUnits) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ResourceUnits) XXX_Merge ¶ added in v0.9.1
func (m *ResourceUnits) XXX_Merge(src proto.Message)
func (*ResourceUnits) XXX_Size ¶ added in v0.9.1
func (m *ResourceUnits) XXX_Size() int
func (*ResourceUnits) XXX_Unmarshal ¶ added in v0.9.1
func (m *ResourceUnits) XXX_Unmarshal(b []byte) error
type ResourceValue ¶ added in v0.9.1
type ResourceValue struct {
Val github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,1,opt,name=val,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"val"`
}
Unit stores cpu, memory and storage metrics
func NewResourceValue ¶ added in v0.9.1
func NewResourceValue(val uint64) ResourceValue
func (*ResourceValue) Descriptor ¶ added in v0.9.1
func (*ResourceValue) Descriptor() ([]byte, []int)
func (*ResourceValue) Equal ¶ added in v0.9.1
func (this *ResourceValue) Equal(that interface{}) bool
func (*ResourceValue) Marshal ¶ added in v0.9.1
func (m *ResourceValue) Marshal() (dAtA []byte, err error)
func (*ResourceValue) MarshalTo ¶ added in v0.9.1
func (m *ResourceValue) MarshalTo(dAtA []byte) (int, error)
func (*ResourceValue) MarshalToSizedBuffer ¶ added in v0.9.1
func (m *ResourceValue) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ResourceValue) ProtoMessage ¶ added in v0.9.1
func (*ResourceValue) ProtoMessage()
func (*ResourceValue) Reset ¶ added in v0.9.1
func (m *ResourceValue) Reset()
func (*ResourceValue) Size ¶ added in v0.9.1
func (m *ResourceValue) Size() (n int)
func (*ResourceValue) String ¶ added in v0.9.1
func (m *ResourceValue) String() string
func (*ResourceValue) Unmarshal ¶ added in v0.9.1
func (m *ResourceValue) Unmarshal(dAtA []byte) error
func (ResourceValue) Value ¶ added in v0.9.1
func (m ResourceValue) Value() uint64
func (*ResourceValue) XXX_DiscardUnknown ¶ added in v0.9.1
func (m *ResourceValue) XXX_DiscardUnknown()
func (*ResourceValue) XXX_Marshal ¶ added in v0.9.1
func (m *ResourceValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ResourceValue) XXX_Merge ¶ added in v0.9.1
func (m *ResourceValue) XXX_Merge(src proto.Message)
func (*ResourceValue) XXX_Size ¶ added in v0.9.1
func (m *ResourceValue) XXX_Size() int
func (*ResourceValue) XXX_Unmarshal ¶ added in v0.9.1
func (m *ResourceValue) XXX_Unmarshal(b []byte) error
type Resources ¶ added in v0.9.1
type Resources struct { Resources ResourceUnits `json:"resources"` Count uint32 `json:"count"` }
Resources stores Unit details and Count value
type SignedBy ¶ added in v0.9.1
type SignedBy struct { // all_of all keys in this list must have signed attributes AllOf []string `protobuf:"bytes,1,rep,name=all_of,json=allOf,proto3" json:"all_of" yaml:"allOf"` // any_of at least of of the keys from the list must have signed attributes AnyOf []string `protobuf:"bytes,2,rep,name=any_of,json=anyOf,proto3" json:"any_of" yaml:"anyOf"` }
SignedBy represents validation accounts that tenant expects signatures for provider attributes AllOf has precedence i.e. if there is at least one entry AnyOf is ignored regardless to how many entries there this behaviour to be discussed
func (*SignedBy) Descriptor ¶ added in v0.9.1
func (*SignedBy) MarshalToSizedBuffer ¶ added in v0.9.1
func (*SignedBy) ProtoMessage ¶ added in v0.9.1
func (*SignedBy) ProtoMessage()
func (*SignedBy) XXX_DiscardUnknown ¶ added in v0.9.1
func (m *SignedBy) XXX_DiscardUnknown()
func (*SignedBy) XXX_Marshal ¶ added in v0.9.1
func (*SignedBy) XXX_Unmarshal ¶ added in v0.9.1
type Storage ¶ added in v0.9.1
type Storage struct { Quantity ResourceValue `protobuf:"bytes,1,opt,name=quantity,proto3" json:"size" yaml:"size"` Attributes []Attribute `protobuf:"bytes,2,rep,name=attributes,proto3" json:"attributes,omitempty" yaml:"cpu,omitempty"` }
Storage stores resource quantity and storage attributes
func (*Storage) Descriptor ¶ added in v0.9.1
func (*Storage) GetAttributes ¶ added in v0.9.1
func (*Storage) GetQuantity ¶ added in v0.9.1
func (m *Storage) GetQuantity() ResourceValue
func (*Storage) MarshalToSizedBuffer ¶ added in v0.9.1
func (*Storage) ProtoMessage ¶ added in v0.9.1
func (*Storage) ProtoMessage()
func (*Storage) XXX_DiscardUnknown ¶ added in v0.9.1
func (m *Storage) XXX_DiscardUnknown()