v1

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package common/v1 contains the common types used in the integration API of ArangoDB Managed Service

Index

Constants

View Source
const (
	// APIIDCommon contains identifier of this API
	APIIDCommon = "integration-common/v1"
	// APIMajorVersion contains major version of this API
	APIMajorVersion = 1
	// APIMinorVersion contains minor version of this API
	APIMinorVersion = 0
	// APIPatchVersion contains patch version of this API
	APIPatchVersion = 0
)

Variables

View Source
var (
	ErrInvalidLengthIcommon        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowIcommon          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupIcommon = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type KeyValuePair

type KeyValuePair struct {
	// The key.
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// The value.
	Value                string   `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

KeyValuePair specifies a key-value pair.

func (*KeyValuePair) Descriptor

func (*KeyValuePair) Descriptor() ([]byte, []int)

func (*KeyValuePair) GetKey

func (m *KeyValuePair) GetKey() string

func (*KeyValuePair) GetValue

func (m *KeyValuePair) GetValue() string

func (*KeyValuePair) Marshal

func (m *KeyValuePair) Marshal() (dAtA []byte, err error)

func (*KeyValuePair) MarshalTo

func (m *KeyValuePair) MarshalTo(dAtA []byte) (int, error)

func (*KeyValuePair) MarshalToSizedBuffer

func (m *KeyValuePair) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*KeyValuePair) ProtoMessage

func (*KeyValuePair) ProtoMessage()

func (*KeyValuePair) Reset

func (m *KeyValuePair) Reset()

func (*KeyValuePair) Size

func (m *KeyValuePair) Size() (n int)

func (*KeyValuePair) String

func (m *KeyValuePair) String() string

func (*KeyValuePair) Unmarshal

func (m *KeyValuePair) Unmarshal(dAtA []byte) error

func (*KeyValuePair) XXX_DiscardUnknown

func (m *KeyValuePair) XXX_DiscardUnknown()

func (*KeyValuePair) XXX_Marshal

func (m *KeyValuePair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*KeyValuePair) XXX_Merge

func (m *KeyValuePair) XXX_Merge(src proto.Message)

func (*KeyValuePair) XXX_Size

func (m *KeyValuePair) XXX_Size() int

func (*KeyValuePair) XXX_Unmarshal

func (m *KeyValuePair) XXX_Unmarshal(b []byte) error

type KeyValuePairList

type KeyValuePairList []*KeyValuePair

KeyValuePairList is a strong typed list of KeyValuePair

func (KeyValuePairList) GetValue

func (list KeyValuePairList) GetValue(key string) *string

GetValue gets the value for the requested key or nil if it doesn't exist

func (*KeyValuePairList) RemovePairByKey

func (list *KeyValuePairList) RemovePairByKey(key string) bool

RemovePairByKey removes all entries with the provided key and assigns the new list Returns removed, otherwise unmodified

func (*KeyValuePairList) UpsertPair

func (list *KeyValuePairList) UpsertPair(key, value string) bool

UpsertPair update or insert the given value for the requested key Returns inserted (otherwise updated)

Jump to

Keyboard shortcuts

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