Documentation ¶
Overview ¶
Package common/v1 contains the common types used in API of ArangoDB Managed Service
Index ¶
- Constants
- Variables
- func Aborted(msg string, args ...interface{}) error
- func AlreadyExists(msg string, args ...interface{}) error
- func Canceled(msg string, args ...interface{}) error
- func CloneDuration(s *types.Duration) *types.Duration
- func CloneTimestamp(s *types.Timestamp) *types.Timestamp
- func DeadlineExceeded(msg string, args ...interface{}) error
- func InvalidArgument(msg string, args ...interface{}) error
- func IsAborted(err error) bool
- func IsAlreadyExists(err error) bool
- func IsCanceled(err error) bool
- func IsDeadlineExceeded(err error) bool
- func IsInvalidArgument(err error) bool
- func IsNotFound(err error) bool
- func IsPermissionDenied(err error) bool
- func IsPreconditionFailed(err error) bool
- func IsResourceExhausted(err error) bool
- func IsUnauthenticated(err error) bool
- func IsUnavailable(err error) bool
- func IsUnknown(err error) bool
- func NotFound(msg string, args ...interface{}) error
- func PermissionDenied(msg string, args ...interface{}) error
- func PreconditionFailed(msg string, args ...interface{}) error
- func ResourceExhausted(msg string, args ...interface{}) error
- func Unauthenticated(msg string, args ...interface{}) error
- func Unavailable(msg string, args ...interface{}) error
- func Unknown(msg string, args ...interface{}) error
- type Budget
- func (*Budget) Descriptor() ([]byte, []int)
- func (m *Budget) GetAvailable() int64
- func (m *Budget) GetUnlimited() bool
- func (m *Budget) GetUsed() int64
- func (m *Budget) Marshal() (dAtA []byte, err error)
- func (m *Budget) MarshalTo(dAtA []byte) (int, error)
- func (m *Budget) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Budget) ProtoMessage()
- func (m *Budget) Reset()
- func (m *Budget) Size() (n int)
- func (m *Budget) String() string
- func (m *Budget) Unmarshal(dAtA []byte) error
- func (m *Budget) XXX_DiscardUnknown()
- func (m *Budget) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Budget) XXX_Merge(src proto.Message)
- func (m *Budget) XXX_Size() int
- func (m *Budget) XXX_Unmarshal(b []byte) error
- type CauseFunc
- type Empty
- func (*Empty) Descriptor() ([]byte, []int)
- func (m *Empty) Marshal() (dAtA []byte, err error)
- func (m *Empty) MarshalTo(dAtA []byte) (int, error)
- func (m *Empty) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Empty) ProtoMessage()
- func (m *Empty) Reset()
- func (m *Empty) Size() (n int)
- func (m *Empty) String() string
- func (m *Empty) Unmarshal(dAtA []byte) error
- func (m *Empty) XXX_DiscardUnknown()
- func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Empty) XXX_Merge(src proto.Message)
- func (m *Empty) XXX_Size() int
- func (m *Empty) XXX_Unmarshal(b []byte) error
- type IDOptions
- func (*IDOptions) Descriptor() ([]byte, []int)
- func (m *IDOptions) GetId() string
- func (m *IDOptions) Marshal() (dAtA []byte, err error)
- func (m *IDOptions) MarshalTo(dAtA []byte) (int, error)
- func (m *IDOptions) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*IDOptions) ProtoMessage()
- func (m *IDOptions) Reset()
- func (m *IDOptions) Size() (n int)
- func (m *IDOptions) String() string
- func (m *IDOptions) Unmarshal(dAtA []byte) error
- func (m *IDOptions) XXX_DiscardUnknown()
- func (m *IDOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *IDOptions) XXX_Merge(src proto.Message)
- func (m *IDOptions) XXX_Size() int
- func (m *IDOptions) XXX_Unmarshal(b []byte) error
- type ListOptions
- func (opts *ListOptions) CloneOrDefault(defaultPageSize ...int32) *ListOptions
- func (*ListOptions) Descriptor() ([]byte, []int)
- func (m *ListOptions) GetContextId() string
- func (m *ListOptions) GetPage() int64
- func (m *ListOptions) GetPageSize() int32
- func (m *ListOptions) Marshal() (dAtA []byte, err error)
- func (m *ListOptions) MarshalTo(dAtA []byte) (int, error)
- func (m *ListOptions) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ListOptions) ProtoMessage()
- func (m *ListOptions) Reset()
- func (m *ListOptions) Size() (n int)
- func (m *ListOptions) String() string
- func (m *ListOptions) Unmarshal(dAtA []byte) error
- func (m *ListOptions) XXX_DiscardUnknown()
- func (m *ListOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListOptions) XXX_Merge(src proto.Message)
- func (m *ListOptions) XXX_Size() int
- func (m *ListOptions) XXX_Unmarshal(b []byte) error
- type URLOptions
- func (*URLOptions) Descriptor() ([]byte, []int)
- func (m *URLOptions) GetUrl() string
- func (m *URLOptions) Marshal() (dAtA []byte, err error)
- func (m *URLOptions) MarshalTo(dAtA []byte) (int, error)
- func (m *URLOptions) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*URLOptions) ProtoMessage()
- func (m *URLOptions) Reset()
- func (m *URLOptions) Size() (n int)
- func (m *URLOptions) String() string
- func (m *URLOptions) Unmarshal(dAtA []byte) error
- func (m *URLOptions) XXX_DiscardUnknown()
- func (m *URLOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *URLOptions) XXX_Merge(src proto.Message)
- func (m *URLOptions) XXX_Size() int
- func (m *URLOptions) XXX_Unmarshal(b []byte) error
- type Version
- func (*Version) Descriptor() ([]byte, []int)
- func (m *Version) GetMajor() int32
- func (m *Version) GetMinor() int32
- func (m *Version) GetPatch() int32
- func (m *Version) Marshal() (dAtA []byte, err error)
- func (m *Version) MarshalTo(dAtA []byte) (int, error)
- func (m *Version) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Version) ProtoMessage()
- func (m *Version) Reset()
- func (m *Version) Size() (n int)
- func (m *Version) String() string
- func (m *Version) Unmarshal(dAtA []byte) error
- func (m *Version) XXX_DiscardUnknown()
- func (m *Version) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Version) XXX_Merge(src proto.Message)
- func (m *Version) XXX_Size() int
- func (m *Version) XXX_Unmarshal(b []byte) error
- type YesOrNo
- func (*YesOrNo) Descriptor() ([]byte, []int)
- func (m *YesOrNo) GetResult() bool
- func (m *YesOrNo) Marshal() (dAtA []byte, err error)
- func (m *YesOrNo) MarshalTo(dAtA []byte) (int, error)
- func (m *YesOrNo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*YesOrNo) ProtoMessage()
- func (m *YesOrNo) Reset()
- func (m *YesOrNo) Size() (n int)
- func (m *YesOrNo) String() string
- func (m *YesOrNo) Unmarshal(dAtA []byte) error
- func (m *YesOrNo) XXX_DiscardUnknown()
- func (m *YesOrNo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *YesOrNo) XXX_Merge(src proto.Message)
- func (m *YesOrNo) XXX_Size() int
- func (m *YesOrNo) XXX_Unmarshal(b []byte) error
Constants ¶
const (
// DefaultPageSize is the default number of items per List request.
DefaultPageSize = 50
)
Variables ¶
var ( ErrInvalidLengthCommon = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowCommon = fmt.Errorf("proto: integer overflow") )
var Cause = func(err error) error { return err }
Cause is the cause function used by the error helpers in this module.
Functions ¶
func Aborted ¶ added in v0.45.4
Aborted creates a new error that signals that an operation was aborted.
func AlreadyExists ¶
AlreadyExists creates a new error that signals a request to create an object that already exists.
func Canceled ¶
Canceled creates a new error that signals a request that was canceled. Typically by the caller.
func CloneDuration ¶
CloneDuration creates a deep copy of the given duration
func CloneTimestamp ¶
CloneTimestamp creates a deep clone of the given timestamp
func DeadlineExceeded ¶
DeadlineExceeded creates a new error that signals a request that timed out.
func InvalidArgument ¶
InvalidArgument creates a new error that signals a request with invalid arguments.
func IsAborted ¶ added in v0.45.4
IsAborted returns true if the given error signals that the operation was aborted.
func IsAlreadyExists ¶
IsAlreadyExists returns true if the given error signals a request to create an object that already exists.
func IsCanceled ¶
IsCanceled returns true if the given error signals a request that was canceled. Typically by the caller.
func IsDeadlineExceeded ¶
IsDeadlineExceeded returns true if the given error signals a request that timed out.
func IsInvalidArgument ¶
IsInvalidArgument returns true if the given error signals a request with invalid arguments.
func IsNotFound ¶
IsNotFound returns true if the given error signals a request to an object that is not found.
func IsPermissionDenied ¶
IsPermissionDenied returns true if the given error signals a request that the caller has not enough permissions for.
func IsPreconditionFailed ¶
IsPreconditionFailed returns true if the given error signals a precondition of the request has failed.
func IsResourceExhausted ¶ added in v0.45.3
IsResourceExhausted returns true if the given error signals a request that failed because of lack of resources, e.g. user quotas.
func IsUnauthenticated ¶
IsUnauthenticated returns true if the given error signals an unauthenticated request.
func IsUnavailable ¶ added in v0.45.4
IsUnavailable returns true if the given error signals an unavailable error. This is a most likely a transient condition and may be corrected by retrying with a backoff. Note that it is not always safe to retry non-idempotent operations.
func PermissionDenied ¶
PermissionDenied creates a new error that signals a request that the caller has not enough permissions for.
func PreconditionFailed ¶
PreconditionFailed creates a new error that signals a request that a precondition of the call has failed.
func ResourceExhausted ¶ added in v0.45.3
ResourceExhausted creates a new error that signals a request that failed because of lack of resources, e.g. user quotas.
func Unauthenticated ¶
Unauthenticated creates a new error that signals an unauthenticated request.
func Unavailable ¶ added in v0.45.4
Unavailable creates a new error that signals an unavailable service.
Types ¶
type Budget ¶
type Budget struct { // How many resources of the specific kind are in use Used int64 `protobuf:"varint,1,opt,name=used,proto3" json:"used,omitempty"` // How many resources of the specific kind are still available. // Note a value above 0 does not mean that the caller has permission to add those resources. Available int64 `protobuf:"varint,2,opt,name=available,proto3" json:"available,omitempty"` // If set, there is no limit to the number of resources of a specific kind that can be created. // If set, available is 0. Unlimited bool `protobuf:"varint,3,opt,name=unlimited,proto3" json:"unlimited,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Budget for resources of a specific kind
func (*Budget) Descriptor ¶
func (*Budget) GetAvailable ¶
func (*Budget) GetUnlimited ¶
func (*Budget) MarshalToSizedBuffer ¶
func (*Budget) ProtoMessage ¶
func (*Budget) ProtoMessage()
func (*Budget) XXX_DiscardUnknown ¶
func (m *Budget) XXX_DiscardUnknown()
func (*Budget) XXX_Marshal ¶
func (*Budget) XXX_Unmarshal ¶
type CauseFunc ¶
CauseFunc specifies the prototype of a function that must return the cause of the given error. If there is not underlying cause, the given error itself must be retured. If nil is passed, nil must be returned.
type Empty ¶
type Empty struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Empty message
func (*Empty) Descriptor ¶
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) XXX_DiscardUnknown ¶
func (m *Empty) XXX_DiscardUnknown()
func (*Empty) XXX_Marshal ¶
func (*Empty) XXX_Unmarshal ¶
type IDOptions ¶
type IDOptions struct { // System identifier of the object to fetch. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Options for a get-by-id request
func (*IDOptions) Descriptor ¶
func (*IDOptions) MarshalToSizedBuffer ¶
func (*IDOptions) ProtoMessage ¶
func (*IDOptions) ProtoMessage()
func (*IDOptions) XXX_DiscardUnknown ¶
func (m *IDOptions) XXX_DiscardUnknown()
func (*IDOptions) XXX_Marshal ¶
func (*IDOptions) XXX_Unmarshal ¶
type ListOptions ¶
type ListOptions struct { // Maximum number of items to return. // If not specified, a default number items are returned. // Unless specified otherwise, the default number is DefaultPageSize. PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // Page to start with (defaults to 0). Page int64 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"` // Identifier of the resource in which the list request is made. ContextId string `protobuf:"bytes,3,opt,name=context_id,json=contextId,proto3" json:"context_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Options for a list request.
func (*ListOptions) CloneOrDefault ¶
func (opts *ListOptions) CloneOrDefault(defaultPageSize ...int32) *ListOptions
CloneOrDefault creates a clone of the given options if not nil, or creates an empty ListOptions. In either case, if current pageSize is zero, it is set to the given default page size or DefaultPageSize is not default page size is given.
func (*ListOptions) Descriptor ¶
func (*ListOptions) Descriptor() ([]byte, []int)
func (*ListOptions) GetContextId ¶
func (m *ListOptions) GetContextId() string
func (*ListOptions) GetPage ¶
func (m *ListOptions) GetPage() int64
func (*ListOptions) GetPageSize ¶
func (m *ListOptions) GetPageSize() int32
func (*ListOptions) Marshal ¶
func (m *ListOptions) Marshal() (dAtA []byte, err error)
func (*ListOptions) MarshalToSizedBuffer ¶
func (m *ListOptions) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ListOptions) ProtoMessage ¶
func (*ListOptions) ProtoMessage()
func (*ListOptions) Reset ¶
func (m *ListOptions) Reset()
func (*ListOptions) Size ¶
func (m *ListOptions) Size() (n int)
func (*ListOptions) String ¶
func (m *ListOptions) String() string
func (*ListOptions) Unmarshal ¶
func (m *ListOptions) Unmarshal(dAtA []byte) error
func (*ListOptions) XXX_DiscardUnknown ¶
func (m *ListOptions) XXX_DiscardUnknown()
func (*ListOptions) XXX_Marshal ¶
func (m *ListOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListOptions) XXX_Merge ¶
func (m *ListOptions) XXX_Merge(src proto.Message)
func (*ListOptions) XXX_Size ¶
func (m *ListOptions) XXX_Size() int
func (*ListOptions) XXX_Unmarshal ¶
func (m *ListOptions) XXX_Unmarshal(b []byte) error
type URLOptions ¶
type URLOptions struct { // URL of the resource to fetch. Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Options for a get-by-url request
func (*URLOptions) Descriptor ¶
func (*URLOptions) Descriptor() ([]byte, []int)
func (*URLOptions) GetUrl ¶
func (m *URLOptions) GetUrl() string
func (*URLOptions) Marshal ¶
func (m *URLOptions) Marshal() (dAtA []byte, err error)
func (*URLOptions) MarshalToSizedBuffer ¶
func (m *URLOptions) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*URLOptions) ProtoMessage ¶
func (*URLOptions) ProtoMessage()
func (*URLOptions) Reset ¶
func (m *URLOptions) Reset()
func (*URLOptions) Size ¶
func (m *URLOptions) Size() (n int)
func (*URLOptions) String ¶
func (m *URLOptions) String() string
func (*URLOptions) Unmarshal ¶
func (m *URLOptions) Unmarshal(dAtA []byte) error
func (*URLOptions) XXX_DiscardUnknown ¶
func (m *URLOptions) XXX_DiscardUnknown()
func (*URLOptions) XXX_Marshal ¶
func (m *URLOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*URLOptions) XXX_Merge ¶
func (m *URLOptions) XXX_Merge(src proto.Message)
func (*URLOptions) XXX_Size ¶
func (m *URLOptions) XXX_Size() int
func (*URLOptions) XXX_Unmarshal ¶
func (m *URLOptions) XXX_Unmarshal(b []byte) error
type Version ¶
type Version struct { // Major version (increasing may break APIs) Major int32 `protobuf:"varint,1,opt,name=major,proto3" json:"major,omitempty"` // Minor version (increased for new features) Minor int32 `protobuf:"varint,2,opt,name=minor,proto3" json:"minor,omitempty"` // Patch version (increased for fixed) Patch int32 `protobuf:"varint,3,opt,name=patch,proto3" json:"patch,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Semantic version number.
func (*Version) Descriptor ¶
func (*Version) MarshalToSizedBuffer ¶
func (*Version) ProtoMessage ¶
func (*Version) ProtoMessage()
func (*Version) XXX_DiscardUnknown ¶
func (m *Version) XXX_DiscardUnknown()
func (*Version) XXX_Marshal ¶
func (*Version) XXX_Unmarshal ¶
type YesOrNo ¶
type YesOrNo struct { Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Response for single boolean.
func (*YesOrNo) Descriptor ¶
func (*YesOrNo) MarshalToSizedBuffer ¶
func (*YesOrNo) ProtoMessage ¶
func (*YesOrNo) ProtoMessage()
func (*YesOrNo) XXX_DiscardUnknown ¶
func (m *YesOrNo) XXX_DiscardUnknown()