Documentation ¶
Index ¶
- func AddressToGRPCMessage(a *Address) *refs.Address
- func ChecksumToGRPCMessage(c *Checksum) *refs.Checksum
- func ContainerIDToGRPCMessage(c *ContainerID) *refs.ContainerID
- func ObjectIDListToGRPCMessage(ids []*ObjectID) []*refs.ObjectID
- func ObjectIDNestedListMarshal(fNum int64, buf []byte, ids []*ObjectID) (off int, err error)
- func ObjectIDNestedListSize(fNum int64, ids []*ObjectID) (sz int)
- func ObjectIDToGRPCMessage(o *ObjectID) *refs.ObjectID
- func OwnerIDToGRPCMessage(o *OwnerID) *refs.OwnerID
- func SignatureToGRPCMessage(s *Signature) *refs.Signature
- func VersionToGRPCMessage(v *Version) *refs.Version
- type Address
- func (a *Address) GetContainerID() *ContainerID
- func (a *Address) GetObjectID() *ObjectID
- func (a *Address) MarshalJSON() ([]byte, error)
- func (a *Address) SetContainerID(v *ContainerID)
- func (a *Address) SetObjectID(v *ObjectID)
- func (a *Address) StableMarshal(buf []byte) ([]byte, error)
- func (a *Address) StableSize() (size int)
- func (a *Address) Unmarshal(data []byte) error
- func (a *Address) UnmarshalJSON(data []byte) error
- type Checksum
- func (c *Checksum) GetSum() []byte
- func (c *Checksum) GetType() ChecksumType
- func (c *Checksum) MarshalJSON() ([]byte, error)
- func (c *Checksum) SetSum(v []byte)
- func (c *Checksum) SetType(v ChecksumType)
- func (c *Checksum) StableMarshal(buf []byte) ([]byte, error)
- func (c *Checksum) StableSize() (size int)
- func (c *Checksum) Unmarshal(data []byte) error
- func (c *Checksum) UnmarshalJSON(data []byte) error
- type ChecksumType
- type ContainerID
- func (c *ContainerID) GetValue() []byte
- func (c *ContainerID) MarshalJSON() ([]byte, error)
- func (c *ContainerID) SetValue(v []byte)
- func (c *ContainerID) StableMarshal(buf []byte) ([]byte, error)
- func (c *ContainerID) StableSize() int
- func (c *ContainerID) Unmarshal(data []byte) error
- func (c *ContainerID) UnmarshalJSON(data []byte) error
- type ObjectID
- func (o *ObjectID) GetValue() []byte
- func (o *ObjectID) MarshalJSON() ([]byte, error)
- func (o *ObjectID) SetValue(v []byte)
- func (o *ObjectID) StableMarshal(buf []byte) ([]byte, error)
- func (o *ObjectID) StableSize() int
- func (o *ObjectID) Unmarshal(data []byte) error
- func (o *ObjectID) UnmarshalJSON(data []byte) error
- type OwnerID
- func (o *OwnerID) GetValue() []byte
- func (o *OwnerID) MarshalJSON() ([]byte, error)
- func (o *OwnerID) SetValue(v []byte)
- func (o *OwnerID) StableMarshal(buf []byte) ([]byte, error)
- func (o *OwnerID) StableSize() int
- func (o *OwnerID) Unmarshal(data []byte) error
- func (o *OwnerID) UnmarshalJSON(data []byte) error
- type Signature
- func (s *Signature) GetKey() []byte
- func (s *Signature) GetSign() []byte
- func (s *Signature) MarshalJSON() ([]byte, error)
- func (s *Signature) SetKey(v []byte)
- func (s *Signature) SetSign(v []byte)
- func (s *Signature) StableMarshal(buf []byte) ([]byte, error)
- func (s *Signature) StableSize() (size int)
- func (s *Signature) Unmarshal(data []byte) error
- func (s *Signature) UnmarshalJSON(data []byte) error
- type Version
- func (v *Version) GetMajor() uint32
- func (v *Version) GetMinor() uint32
- func (v *Version) MarshalJSON() ([]byte, error)
- func (v *Version) SetMajor(val uint32)
- func (v *Version) SetMinor(val uint32)
- func (v *Version) StableMarshal(buf []byte) ([]byte, error)
- func (v *Version) StableSize() (size int)
- func (v *Version) Unmarshal(data []byte) error
- func (v *Version) UnmarshalJSON(data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddressToGRPCMessage ¶
func ChecksumToGRPCMessage ¶
func ContainerIDToGRPCMessage ¶
func ContainerIDToGRPCMessage(c *ContainerID) *refs.ContainerID
func ObjectIDListToGRPCMessage ¶ added in v1.22.0
func ObjectIDNestedListMarshal ¶ added in v1.22.0
ObjectIDNestedListMarshal writes protobuf repeated ObjectID field with fNum number to buf.
func ObjectIDNestedListSize ¶ added in v1.22.0
ObjectIDNestedListSize returns byte length of nested repeated ObjectID field with fNum number.
func ObjectIDToGRPCMessage ¶
func OwnerIDToGRPCMessage ¶
func SignatureToGRPCMessage ¶
func VersionToGRPCMessage ¶
Types ¶
type Address ¶
type Address struct {
// contains filtered or unexported fields
}
func AddressFromGRPCMessage ¶
func (*Address) GetContainerID ¶
func (a *Address) GetContainerID() *ContainerID
func (*Address) GetObjectID ¶
func (*Address) MarshalJSON ¶
func (*Address) SetContainerID ¶
func (a *Address) SetContainerID(v *ContainerID)
func (*Address) SetObjectID ¶
func (*Address) StableSize ¶
func (*Address) UnmarshalJSON ¶
type Checksum ¶
type Checksum struct {
// contains filtered or unexported fields
}
func ChecksumFromGRPCMessage ¶
func (*Checksum) GetType ¶
func (c *Checksum) GetType() ChecksumType
func (*Checksum) MarshalJSON ¶
func (*Checksum) SetType ¶
func (c *Checksum) SetType(v ChecksumType)
func (*Checksum) StableSize ¶
func (*Checksum) UnmarshalJSON ¶
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 ObjectIDListFromGRPCMessage ¶ added in v1.22.0
func (*ObjectID) MarshalJSON ¶
func (*ObjectID) StableSize ¶
func (*ObjectID) UnmarshalJSON ¶
type OwnerID ¶
type OwnerID struct {
// contains filtered or unexported fields
}
func OwnerIDFromGRPCMessage ¶
func (*OwnerID) MarshalJSON ¶
func (*OwnerID) StableSize ¶
func (*OwnerID) UnmarshalJSON ¶
type Signature ¶
type Signature struct {
// contains filtered or unexported fields
}
func (*Signature) MarshalJSON ¶
func (*Signature) StableSize ¶
func (*Signature) UnmarshalJSON ¶
type Version ¶
type Version struct {
// contains filtered or unexported fields
}
func VersionFromGRPCMessage ¶
func (*Version) MarshalJSON ¶
func (*Version) StableSize ¶
func (*Version) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.