refs

package
v1.20.3 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2020 License: Apache-2.0 Imports: 4 Imported by: 32

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddressToGRPCMessage

func AddressToGRPCMessage(a *Address) *refs.Address

func ChecksumToGRPCMessage

func ChecksumToGRPCMessage(c *Checksum) *refs.Checksum

func ContainerIDToGRPCMessage

func ContainerIDToGRPCMessage(c *ContainerID) *refs.ContainerID

func ObjectIDToGRPCMessage

func ObjectIDToGRPCMessage(o *ObjectID) *refs.ObjectID

func OwnerIDToGRPCMessage

func OwnerIDToGRPCMessage(o *OwnerID) *refs.OwnerID

func SignatureToGRPCMessage

func SignatureToGRPCMessage(s *Signature) *refs.Signature

func VersionToGRPCMessage

func VersionToGRPCMessage(v *Version) *refs.Version

Types

type Address

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

func AddressFromGRPCMessage

func AddressFromGRPCMessage(m *refs.Address) *Address

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) 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 ChecksumFromGRPCMessage

func ChecksumFromGRPCMessage(m *refs.Checksum) *Checksum

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) 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
)

type ContainerID

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

func ContainerIDFromGRPCMessage

func ContainerIDFromGRPCMessage(m *refs.ContainerID) *ContainerID

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) 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 ObjectIDFromGRPCMessage

func ObjectIDFromGRPCMessage(m *refs.ObjectID) *ObjectID

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) 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 OwnerIDFromGRPCMessage

func OwnerIDFromGRPCMessage(m *refs.OwnerID) *OwnerID

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) 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 SignatureFromGRPCMessage

func SignatureFromGRPCMessage(m *refs.Signature) *Signature

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) 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 VersionFromGRPCMessage

func VersionFromGRPCMessage(m *refs.Version) *Version

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) 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