refs

package
v1.28.1 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2021 License: Apache-2.0 Imports: 4 Imported by: 32

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChecksumTypeToGRPC added in v1.25.0

func ChecksumTypeToGRPC(t ChecksumType) refs.ChecksumType

func ContainerIDsToGRPCMessage added in v1.25.0

func ContainerIDsToGRPCMessage(ids []*ContainerID) (res []*refs.ContainerID)

func ObjectIDListToGRPCMessage added in v1.22.0

func ObjectIDListToGRPCMessage(ids []*ObjectID) (res []*refs.ObjectID)

func ObjectIDNestedListMarshal added in v1.22.0

func ObjectIDNestedListMarshal(fNum int64, buf []byte, ids []*ObjectID) (off int, err error)

ObjectIDNestedListMarshal writes protobuf repeated ObjectID field with fNum number to buf.

func ObjectIDNestedListSize added in v1.22.0

func ObjectIDNestedListSize(fNum int64, ids []*ObjectID) (sz int)

ObjectIDNestedListSize returns byte length of nested repeated ObjectID field with fNum number.

Types

type Address

type Address struct {
	// contains filtered or unexported fields
}

func (*Address) FromGRPCMessage added in v1.25.0

func (a *Address) FromGRPCMessage(m grpc.Message) error

func (*Address) GetContainerID

func (a *Address) GetContainerID() *ContainerID

func (*Address) GetObjectID

func (a *Address) GetObjectID() *ObjectID

func (*Address) MarshalJSON

func (a *Address) MarshalJSON() ([]byte, error)

func (*Address) SetContainerID

func (a *Address) SetContainerID(v *ContainerID)

func (*Address) SetObjectID

func (a *Address) SetObjectID(v *ObjectID)

func (*Address) StableMarshal

func (a *Address) StableMarshal(buf []byte) ([]byte, error)

func (*Address) StableSize

func (a *Address) StableSize() (size int)

func (*Address) ToGRPCMessage added in v1.25.0

func (a *Address) ToGRPCMessage() grpc.Message

func (*Address) Unmarshal

func (a *Address) Unmarshal(data []byte) error

func (*Address) UnmarshalJSON

func (a *Address) UnmarshalJSON(data []byte) error

type Checksum

type Checksum struct {
	// contains filtered or unexported fields
}

func (*Checksum) FromGRPCMessage added in v1.25.0

func (c *Checksum) FromGRPCMessage(m grpc.Message) error

func (*Checksum) GetSum

func (c *Checksum) GetSum() []byte

func (*Checksum) GetType

func (c *Checksum) GetType() ChecksumType

func (*Checksum) MarshalJSON

func (c *Checksum) MarshalJSON() ([]byte, error)

func (*Checksum) SetSum

func (c *Checksum) SetSum(v []byte)

func (*Checksum) SetType

func (c *Checksum) SetType(v ChecksumType)

func (*Checksum) StableMarshal

func (c *Checksum) StableMarshal(buf []byte) ([]byte, error)

func (*Checksum) StableSize

func (c *Checksum) StableSize() (size int)

func (*Checksum) ToGRPCMessage added in v1.25.0

func (c *Checksum) ToGRPCMessage() grpc.Message

func (*Checksum) Unmarshal

func (c *Checksum) Unmarshal(data []byte) error

func (*Checksum) UnmarshalJSON

func (c *Checksum) UnmarshalJSON(data []byte) error

type ChecksumType

type ChecksumType uint32
const (
	UnknownChecksum ChecksumType = iota
	TillichZemor
	SHA256
)

func ChecksumTypeFromGRPC added in v1.25.0

func ChecksumTypeFromGRPC(t refs.ChecksumType) ChecksumType

func (*ChecksumType) FromString added in v1.28.0

func (t *ChecksumType) FromString(s string) bool

FromString parses ChecksumType from a string representation. It is a reverse action to String().

Returns true if s was parsed successfully.

func (ChecksumType) String added in v1.28.0

func (t ChecksumType) String() string

String returns string representation of ChecksumType.

type ContainerID

type ContainerID struct {
	// contains filtered or unexported fields
}

func ContainerIDsFromGRPCMessage added in v1.25.0

func ContainerIDsFromGRPCMessage(idsV2 []*refs.ContainerID) (res []*ContainerID, err error)

func (*ContainerID) FromGRPCMessage added in v1.25.0

func (c *ContainerID) FromGRPCMessage(m grpc.Message) error

func (*ContainerID) GetValue

func (c *ContainerID) GetValue() []byte

func (*ContainerID) MarshalJSON

func (c *ContainerID) MarshalJSON() ([]byte, error)

func (*ContainerID) SetValue

func (c *ContainerID) SetValue(v []byte)

func (*ContainerID) StableMarshal

func (c *ContainerID) StableMarshal(buf []byte) ([]byte, error)

func (*ContainerID) StableSize

func (c *ContainerID) StableSize() int

func (*ContainerID) ToGRPCMessage added in v1.25.0

func (c *ContainerID) ToGRPCMessage() grpc.Message

func (*ContainerID) Unmarshal

func (c *ContainerID) Unmarshal(data []byte) error

func (*ContainerID) UnmarshalJSON

func (c *ContainerID) UnmarshalJSON(data []byte) error

type ObjectID

type ObjectID struct {
	// contains filtered or unexported fields
}

func ObjectIDListFromGRPCMessage added in v1.22.0

func ObjectIDListFromGRPCMessage(idsV2 []*refs.ObjectID) (res []*ObjectID, err error)

func (*ObjectID) FromGRPCMessage added in v1.25.0

func (o *ObjectID) FromGRPCMessage(m grpc.Message) error

func (*ObjectID) GetValue

func (o *ObjectID) GetValue() []byte

func (*ObjectID) MarshalJSON

func (o *ObjectID) MarshalJSON() ([]byte, error)

func (*ObjectID) SetValue

func (o *ObjectID) SetValue(v []byte)

func (*ObjectID) StableMarshal

func (o *ObjectID) StableMarshal(buf []byte) ([]byte, error)

func (*ObjectID) StableSize

func (o *ObjectID) StableSize() int

func (*ObjectID) ToGRPCMessage added in v1.25.0

func (o *ObjectID) ToGRPCMessage() grpc.Message

func (*ObjectID) Unmarshal

func (o *ObjectID) Unmarshal(data []byte) error

func (*ObjectID) UnmarshalJSON

func (o *ObjectID) UnmarshalJSON(data []byte) error

type OwnerID

type OwnerID struct {
	// contains filtered or unexported fields
}

func (*OwnerID) FromGRPCMessage added in v1.25.0

func (o *OwnerID) FromGRPCMessage(m grpc.Message) error

func (*OwnerID) GetValue

func (o *OwnerID) GetValue() []byte

func (*OwnerID) MarshalJSON

func (o *OwnerID) MarshalJSON() ([]byte, error)

func (*OwnerID) SetValue

func (o *OwnerID) SetValue(v []byte)

func (*OwnerID) StableMarshal

func (o *OwnerID) StableMarshal(buf []byte) ([]byte, error)

func (*OwnerID) StableSize

func (o *OwnerID) StableSize() int

func (*OwnerID) ToGRPCMessage added in v1.25.0

func (o *OwnerID) ToGRPCMessage() grpc.Message

func (*OwnerID) Unmarshal

func (o *OwnerID) Unmarshal(data []byte) error

func (*OwnerID) UnmarshalJSON

func (o *OwnerID) UnmarshalJSON(data []byte) error

type Signature

type Signature struct {
	// contains filtered or unexported fields
}

func (*Signature) FromGRPCMessage added in v1.25.0

func (s *Signature) FromGRPCMessage(m grpc.Message) error

func (*Signature) GetKey

func (s *Signature) GetKey() []byte

func (*Signature) GetSign

func (s *Signature) GetSign() []byte

func (*Signature) MarshalJSON

func (s *Signature) MarshalJSON() ([]byte, error)

func (*Signature) SetKey

func (s *Signature) SetKey(v []byte)

func (*Signature) SetSign

func (s *Signature) SetSign(v []byte)

func (*Signature) StableMarshal

func (s *Signature) StableMarshal(buf []byte) ([]byte, error)

func (*Signature) StableSize

func (s *Signature) StableSize() (size int)

func (*Signature) ToGRPCMessage added in v1.25.0

func (s *Signature) ToGRPCMessage() grpc.Message

func (*Signature) Unmarshal

func (s *Signature) Unmarshal(data []byte) error

func (*Signature) UnmarshalJSON

func (s *Signature) UnmarshalJSON(data []byte) error

type Version

type Version struct {
	// contains filtered or unexported fields
}

func (*Version) FromGRPCMessage added in v1.25.0

func (v *Version) FromGRPCMessage(m grpc.Message) error

func (*Version) GetMajor

func (v *Version) GetMajor() uint32

func (*Version) GetMinor

func (v *Version) GetMinor() uint32

func (*Version) MarshalJSON

func (v *Version) MarshalJSON() ([]byte, error)

func (*Version) SetMajor

func (v *Version) SetMajor(val uint32)

func (*Version) SetMinor

func (v *Version) SetMinor(val uint32)

func (*Version) StableMarshal

func (v *Version) StableMarshal(buf []byte) ([]byte, error)

func (*Version) StableSize

func (v *Version) StableSize() (size int)

func (*Version) ToGRPCMessage added in v1.25.0

func (v *Version) ToGRPCMessage() grpc.Message

func (*Version) Unmarshal

func (v *Version) Unmarshal(data []byte) error

func (*Version) UnmarshalJSON

func (v *Version) UnmarshalJSON(data []byte) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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