proto

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_manifest_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ADSEntry

type ADSEntry struct {

	// Name specifices the stream name.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Data specifies the stream data.
	// See also the description about the digest below.
	Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	// Digest is a CAS representation of the stream data.
	//
	// At least one of data or digest MUST be specified, and either one of them
	// SHOULD be specified.
	//
	// How to access the actual data using the digest is implementation-specific,
	// and implementations can choose not to implement digest.
	// So, digest SHOULD be used only when the stream data is large.
	Digest string `protobuf:"bytes,3,opt,name=digest,proto3" json:"digest,omitempty"`
	// contains filtered or unexported fields
}

ADSEntry encodes information for a Windows Alternate Data Stream.

func (*ADSEntry) Descriptor deprecated

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

Deprecated: Use ADSEntry.ProtoReflect.Descriptor instead.

func (*ADSEntry) GetData

func (x *ADSEntry) GetData() []byte

func (*ADSEntry) GetDigest

func (x *ADSEntry) GetDigest() string

func (*ADSEntry) GetName

func (x *ADSEntry) GetName() string

func (*ADSEntry) ProtoMessage

func (*ADSEntry) ProtoMessage()

func (*ADSEntry) ProtoReflect added in v0.3.0

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

func (*ADSEntry) Reset

func (x *ADSEntry) Reset()

func (*ADSEntry) String

func (x *ADSEntry) String() string

type Manifest

type Manifest struct {
	Resource []*Resource `protobuf:"bytes,1,rep,name=resource,proto3" json:"resource,omitempty"`
	// contains filtered or unexported fields
}

Manifest specifies the entries in a container bundle, keyed and sorted by path.

func (*Manifest) Descriptor deprecated

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

Deprecated: Use Manifest.ProtoReflect.Descriptor instead.

func (*Manifest) GetResource

func (x *Manifest) GetResource() []*Resource

func (*Manifest) ProtoMessage

func (*Manifest) ProtoMessage()

func (*Manifest) ProtoReflect added in v0.3.0

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

func (*Manifest) Reset

func (x *Manifest) Reset()

func (*Manifest) String

func (x *Manifest) String() string

type Resource

type Resource struct {

	// Path specifies the path from the bundle root. If more than one
	// path is present, the entry may represent a hardlink, rather than using
	// a link target. The path format is operating system specific.
	Path []string `protobuf:"bytes,1,rep,name=path,proto3" json:"path,omitempty"`
	// Uid specifies the user id for the resource.
	Uid int64 `protobuf:"varint,2,opt,name=uid,proto3" json:"uid,omitempty"`
	// Gid specifies the group id for the resource.
	Gid int64 `protobuf:"varint,3,opt,name=gid,proto3" json:"gid,omitempty"`
	// user and group are not currently used but their field numbers have been
	// reserved for future use. As such, they are marked as deprecated.
	//
	// Deprecated: Do not use.
	User string `protobuf:"bytes,4,opt,name=user,proto3" json:"user,omitempty"` // "deprecated" stands for "reserved" here
	// Deprecated: Do not use.
	Group string `protobuf:"bytes,5,opt,name=group,proto3" json:"group,omitempty"` // "deprecated" stands for "reserved" here
	// Mode defines the file mode and permissions. We've used the same
	// bit-packing from Go's os package,
	// http://golang.org/pkg/os/#FileMode, since they've done the work of
	// creating a cross-platform layout.
	Mode uint32 `protobuf:"varint,6,opt,name=mode,proto3" json:"mode,omitempty"`
	// Size specifies the size in bytes of the resource. This is only valid
	// for regular files.
	Size uint64 `protobuf:"varint,7,opt,name=size,proto3" json:"size,omitempty"`
	// Digest specifies the content digest of the target file. Only valid for
	// regular files. The strings are formatted in OCI style, i.e. <alg>:<encoded>.
	// For detailed information about the format, please refer to OCI Image Spec:
	// https://github.com/opencontainers/image-spec/blob/master/descriptor.md#digests-and-verification
	// The digests are sorted in lexical order and implementations may choose
	// which algorithms they prefer.
	Digest []string `protobuf:"bytes,8,rep,name=digest,proto3" json:"digest,omitempty"`
	// Target defines the target of a hard or soft link. Absolute links start
	// with a slash and specify the resource relative to the bundle root.
	// Relative links do not start with a slash and are relative to the
	// resource path.
	Target string `protobuf:"bytes,9,opt,name=target,proto3" json:"target,omitempty"`
	// Major specifies the major device number for character and block devices.
	Major uint64 `protobuf:"varint,10,opt,name=major,proto3" json:"major,omitempty"`
	// Minor specifies the minor device number for character and block devices.
	Minor uint64 `protobuf:"varint,11,opt,name=minor,proto3" json:"minor,omitempty"`
	// Xattr provides storage for extended attributes for the target resource.
	Xattr []*XAttr `protobuf:"bytes,12,rep,name=xattr,proto3" json:"xattr,omitempty"`
	// Ads stores one or more alternate data streams for the target resource.
	Ads []*ADSEntry `protobuf:"bytes,13,rep,name=ads,proto3" json:"ads,omitempty"`
	// contains filtered or unexported fields
}

func (*Resource) Descriptor deprecated

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

Deprecated: Use Resource.ProtoReflect.Descriptor instead.

func (*Resource) GetAds

func (x *Resource) GetAds() []*ADSEntry

func (*Resource) GetDigest

func (x *Resource) GetDigest() []string

func (*Resource) GetGid

func (x *Resource) GetGid() int64

func (*Resource) GetGroup deprecated

func (x *Resource) GetGroup() string

Deprecated: Do not use.

func (*Resource) GetMajor

func (x *Resource) GetMajor() uint64

func (*Resource) GetMinor

func (x *Resource) GetMinor() uint64

func (*Resource) GetMode

func (x *Resource) GetMode() uint32

func (*Resource) GetPath

func (x *Resource) GetPath() []string

func (*Resource) GetSize

func (x *Resource) GetSize() uint64

func (*Resource) GetTarget

func (x *Resource) GetTarget() string

func (*Resource) GetUid

func (x *Resource) GetUid() int64

func (*Resource) GetUser deprecated

func (x *Resource) GetUser() string

Deprecated: Do not use.

func (*Resource) GetXattr

func (x *Resource) GetXattr() []*XAttr

func (*Resource) ProtoMessage

func (*Resource) ProtoMessage()

func (*Resource) ProtoReflect added in v0.3.0

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

func (*Resource) Reset

func (x *Resource) Reset()

func (*Resource) String

func (x *Resource) String() string

type XAttr

type XAttr struct {

	// Name specifies the attribute name.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Data specifies the associated data for the attribute.
	Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

XAttr encodes extended attributes for a resource.

func (*XAttr) Descriptor deprecated

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

Deprecated: Use XAttr.ProtoReflect.Descriptor instead.

func (*XAttr) GetData

func (x *XAttr) GetData() []byte

func (*XAttr) GetName

func (x *XAttr) GetName() string

func (*XAttr) ProtoMessage

func (*XAttr) ProtoMessage()

func (*XAttr) ProtoReflect added in v0.3.0

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

func (*XAttr) Reset

func (x *XAttr) Reset()

func (*XAttr) String

func (x *XAttr) String() string

Jump to

Keyboard shortcuts

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