326 lines
12 KiB
Go

// Copyright (c) 2020 Gitpod GmbH. All rights reserved.
// Licensed under the GNU Affero General Public License (AGPL).
// See License-AGPL.txt in the project root for license information.
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: imagespec.proto
package api
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// ImageSpec configures the image one wishes to pull from a registry facade
type ImageSpec struct {
// base_ref points to an image in another registry
BaseRef string `protobuf:"bytes,1,opt,name=base_ref,json=baseRef,proto3" json:"base_ref,omitempty"`
// ide_ref points to an image denoting the IDE to use
IdeRef string `protobuf:"bytes,2,opt,name=ide_ref,json=ideRef,proto3" json:"ide_ref,omitempty"`
// content_layer describe the last few layers which provide the workspace's content
ContentLayer []*ContentLayer `protobuf:"bytes,3,rep,name=content_layer,json=contentLayer,proto3" json:"content_layer,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ImageSpec) Reset() { *m = ImageSpec{} }
func (m *ImageSpec) String() string { return proto.CompactTextString(m) }
func (*ImageSpec) ProtoMessage() {}
func (*ImageSpec) Descriptor() ([]byte, []int) {
return fileDescriptor_d570058ee0092420, []int{0}
}
func (m *ImageSpec) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ImageSpec.Unmarshal(m, b)
}
func (m *ImageSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ImageSpec.Marshal(b, m, deterministic)
}
func (m *ImageSpec) XXX_Merge(src proto.Message) {
xxx_messageInfo_ImageSpec.Merge(m, src)
}
func (m *ImageSpec) XXX_Size() int {
return xxx_messageInfo_ImageSpec.Size(m)
}
func (m *ImageSpec) XXX_DiscardUnknown() {
xxx_messageInfo_ImageSpec.DiscardUnknown(m)
}
var xxx_messageInfo_ImageSpec proto.InternalMessageInfo
func (m *ImageSpec) GetBaseRef() string {
if m != nil {
return m.BaseRef
}
return ""
}
func (m *ImageSpec) GetIdeRef() string {
if m != nil {
return m.IdeRef
}
return ""
}
func (m *ImageSpec) GetContentLayer() []*ContentLayer {
if m != nil {
return m.ContentLayer
}
return nil
}
// ContentLayer is a layer that provides a workspace's content
type ContentLayer struct {
// Types that are valid to be assigned to Spec:
// *ContentLayer_Remote
// *ContentLayer_Direct
Spec isContentLayer_Spec `protobuf_oneof:"spec"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ContentLayer) Reset() { *m = ContentLayer{} }
func (m *ContentLayer) String() string { return proto.CompactTextString(m) }
func (*ContentLayer) ProtoMessage() {}
func (*ContentLayer) Descriptor() ([]byte, []int) {
return fileDescriptor_d570058ee0092420, []int{1}
}
func (m *ContentLayer) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ContentLayer.Unmarshal(m, b)
}
func (m *ContentLayer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ContentLayer.Marshal(b, m, deterministic)
}
func (m *ContentLayer) XXX_Merge(src proto.Message) {
xxx_messageInfo_ContentLayer.Merge(m, src)
}
func (m *ContentLayer) XXX_Size() int {
return xxx_messageInfo_ContentLayer.Size(m)
}
func (m *ContentLayer) XXX_DiscardUnknown() {
xxx_messageInfo_ContentLayer.DiscardUnknown(m)
}
var xxx_messageInfo_ContentLayer proto.InternalMessageInfo
type isContentLayer_Spec interface {
isContentLayer_Spec()
}
type ContentLayer_Remote struct {
Remote *RemoteContentLayer `protobuf:"bytes,1,opt,name=remote,proto3,oneof"`
}
type ContentLayer_Direct struct {
Direct *DirectContentLayer `protobuf:"bytes,2,opt,name=direct,proto3,oneof"`
}
func (*ContentLayer_Remote) isContentLayer_Spec() {}
func (*ContentLayer_Direct) isContentLayer_Spec() {}
func (m *ContentLayer) GetSpec() isContentLayer_Spec {
if m != nil {
return m.Spec
}
return nil
}
func (m *ContentLayer) GetRemote() *RemoteContentLayer {
if x, ok := m.GetSpec().(*ContentLayer_Remote); ok {
return x.Remote
}
return nil
}
func (m *ContentLayer) GetDirect() *DirectContentLayer {
if x, ok := m.GetSpec().(*ContentLayer_Direct); ok {
return x.Direct
}
return nil
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*ContentLayer) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*ContentLayer_Remote)(nil),
(*ContentLayer_Direct)(nil),
}
}
// RemoteContentLayer is a layer which can be downloaded from a remote URL.
// If the diff_id is empty or equals the digest the layer is expected to be uncompressed.
type RemoteContentLayer struct {
// url points to the actual content location. This must be a valid HTTPS URL pointing
// to a tar.gz file.
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
// digest is the digest (content hash) of the file the URL points to.
Digest string `protobuf:"bytes,2,opt,name=digest,proto3" json:"digest,omitempty"`
// diff_id is the digest (content hash) of the uncompressed data the URL points to if the
// the URL points to a compressed file. If the file is uncompressed to begin with this field
// can either be empty or the same as digest.
DiffId string `protobuf:"bytes,3,opt,name=diff_id,json=diffId,proto3" json:"diff_id,omitempty"`
// media_type is the content type of the layer and is expected to be one of:
// application/vnd.oci.image.layer.v1.tar
// application/vnd.oci.image.layer.v1.tar+gzip
// application/vnd.oci.image.layer.v1.tar+zstd
MediaType string `protobuf:"bytes,4,opt,name=media_type,json=mediaType,proto3" json:"media_type,omitempty"`
// size is the size of the layer download in bytes
Size int64 `protobuf:"varint,5,opt,name=size,proto3" json:"size,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RemoteContentLayer) Reset() { *m = RemoteContentLayer{} }
func (m *RemoteContentLayer) String() string { return proto.CompactTextString(m) }
func (*RemoteContentLayer) ProtoMessage() {}
func (*RemoteContentLayer) Descriptor() ([]byte, []int) {
return fileDescriptor_d570058ee0092420, []int{2}
}
func (m *RemoteContentLayer) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RemoteContentLayer.Unmarshal(m, b)
}
func (m *RemoteContentLayer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RemoteContentLayer.Marshal(b, m, deterministic)
}
func (m *RemoteContentLayer) XXX_Merge(src proto.Message) {
xxx_messageInfo_RemoteContentLayer.Merge(m, src)
}
func (m *RemoteContentLayer) XXX_Size() int {
return xxx_messageInfo_RemoteContentLayer.Size(m)
}
func (m *RemoteContentLayer) XXX_DiscardUnknown() {
xxx_messageInfo_RemoteContentLayer.DiscardUnknown(m)
}
var xxx_messageInfo_RemoteContentLayer proto.InternalMessageInfo
func (m *RemoteContentLayer) GetUrl() string {
if m != nil {
return m.Url
}
return ""
}
func (m *RemoteContentLayer) GetDigest() string {
if m != nil {
return m.Digest
}
return ""
}
func (m *RemoteContentLayer) GetDiffId() string {
if m != nil {
return m.DiffId
}
return ""
}
func (m *RemoteContentLayer) GetMediaType() string {
if m != nil {
return m.MediaType
}
return ""
}
func (m *RemoteContentLayer) GetSize() int64 {
if m != nil {
return m.Size
}
return 0
}
// DirectContentLayer is an uncompressed tar file which is directly added as layer
type DirectContentLayer struct {
// the bytes of the uncompressed tar file which is served as layer
Content []byte `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DirectContentLayer) Reset() { *m = DirectContentLayer{} }
func (m *DirectContentLayer) String() string { return proto.CompactTextString(m) }
func (*DirectContentLayer) ProtoMessage() {}
func (*DirectContentLayer) Descriptor() ([]byte, []int) {
return fileDescriptor_d570058ee0092420, []int{3}
}
func (m *DirectContentLayer) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DirectContentLayer.Unmarshal(m, b)
}
func (m *DirectContentLayer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DirectContentLayer.Marshal(b, m, deterministic)
}
func (m *DirectContentLayer) XXX_Merge(src proto.Message) {
xxx_messageInfo_DirectContentLayer.Merge(m, src)
}
func (m *DirectContentLayer) XXX_Size() int {
return xxx_messageInfo_DirectContentLayer.Size(m)
}
func (m *DirectContentLayer) XXX_DiscardUnknown() {
xxx_messageInfo_DirectContentLayer.DiscardUnknown(m)
}
var xxx_messageInfo_DirectContentLayer proto.InternalMessageInfo
func (m *DirectContentLayer) GetContent() []byte {
if m != nil {
return m.Content
}
return nil
}
func init() {
proto.RegisterType((*ImageSpec)(nil), "registryfacade.ImageSpec")
proto.RegisterType((*ContentLayer)(nil), "registryfacade.ContentLayer")
proto.RegisterType((*RemoteContentLayer)(nil), "registryfacade.RemoteContentLayer")
proto.RegisterType((*DirectContentLayer)(nil), "registryfacade.DirectContentLayer")
}
func init() {
proto.RegisterFile("imagespec.proto", fileDescriptor_d570058ee0092420)
}
var fileDescriptor_d570058ee0092420 = []byte{
// 309 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x91, 0x3f, 0x4f, 0xc3, 0x30,
0x10, 0xc5, 0x09, 0x69, 0x53, 0x7a, 0x2d, 0x7f, 0x74, 0x03, 0x18, 0x09, 0xa4, 0x2a, 0x53, 0xa7,
0x0c, 0x65, 0x65, 0xa1, 0x30, 0x50, 0x89, 0xc9, 0x30, 0xb1, 0x44, 0xae, 0x7d, 0xae, 0x2c, 0xb5,
0x8d, 0xe5, 0x98, 0x21, 0x8c, 0x8c, 0x8c, 0x7c, 0x62, 0x64, 0xa7, 0x95, 0x4a, 0xcb, 0x76, 0x2f,
0xbf, 0x7b, 0xb9, 0xa7, 0x67, 0x38, 0x37, 0x2b, 0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