v1

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Overview

Package 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 = 1
	// APIPatchVersion contains patch version of this API
	APIPatchVersion = 0
)

Variables

View Source
var File_icommon_proto protoreflect.FileDescriptor

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"`
	// contains filtered or unexported fields
}

KeyValuePair specifies a key-value pair.

func (*KeyValuePair) Descriptor deprecated

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

Deprecated: Use KeyValuePair.ProtoReflect.Descriptor instead.

func (*KeyValuePair) GetKey

func (x *KeyValuePair) GetKey() string

func (*KeyValuePair) GetValue

func (x *KeyValuePair) GetValue() string

func (*KeyValuePair) ProtoMessage

func (*KeyValuePair) ProtoMessage()

func (*KeyValuePair) ProtoReflect added in v0.2.0

func (x *KeyValuePair) ProtoReflect() protoreflect.Message

func (*KeyValuePair) Reset

func (x *KeyValuePair) Reset()

func (*KeyValuePair) String

func (x *KeyValuePair) String() string

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