proto

package
v0.0.0-...-787377c Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Volume_Type_name = map[int32]string{
		0: "VOLUME_EMPTY",
		1: "VOLUME_FILESYSTEM",
		2: "VOLUME_SECRET",
	}
	Volume_Type_value = map[string]int32{
		"VOLUME_EMPTY":      0,
		"VOLUME_FILESYSTEM": 1,
		"VOLUME_SECRET":     2,
	}
)

Enum value maps for Volume_Type.

View Source
var (
	Volume_AccessMode_name = map[int32]string{
		0: "VOLUME_RW_ONE",
		2: "VOLUME_RW_MANY",
	}
	Volume_AccessMode_value = map[string]int32{
		"VOLUME_RW_ONE":  0,
		"VOLUME_RW_MANY": 2,
	}
)

Enum value maps for Volume_AccessMode.

View Source
var Attest string = "/x/apocryph/attest/0.0.1"
View Source
var File_deployment_proto protoreflect.FileDescriptor
View Source
var File_pricing_proto protoreflect.FileDescriptor
View Source
var File_provision_pod_proto protoreflect.FileDescriptor
View Source
var File_provisioning_capacity_proto protoreflect.FileDescriptor
View Source
var File_registry_proto protoreflect.FileDescriptor
View Source
var FormatNames []string
View Source
var Formats = map[string]Format{
	"json":   {protojson.Unmarshal, protojson.Marshal},
	"yaml":   {protoyaml.Unmarshal, MarshalYaml},
	"yml":    {protoyaml.Unmarshal, MarshalYaml},
	"pb":     {proto.Unmarshal, proto.Marshal},
	"pbtext": {prototext.Unmarshal, prototext.Marshal},
}
View Source
var ProvisionPod string = "/x/apocryph/provision-pod/0.0.1"
View Source
var ProvisioningCapacity string = "/x/apocryph/provisioning-capacity/0.0.1"

Functions

func DetectFormat

func DetectFormat(path string) string

func Marshal

func Marshal(format string, m protoreflect.ProtoMessage) ([]byte, error)

func MarshalFile

func MarshalFile(path string, format string, m protoreflect.ProtoMessage) error

func MarshalYaml

func MarshalYaml(message proto.Message) ([]byte, error)

func Unmarshal

func Unmarshal(format string, bytes []byte, m protoreflect.ProtoMessage) error

func UnmarshalFile

func UnmarshalFile(path string, format string, m protoreflect.ProtoMessage) error

Types

type CapacityRequest

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

func (*CapacityRequest) Descriptor deprecated

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

Deprecated: Use CapacityRequest.ProtoReflect.Descriptor instead.

func (*CapacityRequest) GetResources

func (x *CapacityRequest) GetResources() []*Resource

func (*CapacityRequest) ProtoMessage

func (*CapacityRequest) ProtoMessage()

func (*CapacityRequest) ProtoReflect

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

func (*CapacityRequest) Reset

func (x *CapacityRequest) Reset()

func (*CapacityRequest) String

func (x *CapacityRequest) String() string

type CapacityResponse

type CapacityResponse struct {
	AvailableResources []*Resource   `protobuf:"bytes,1,rep,name=availableResources,proto3" json:"availableResources,omitempty"`
	Pricing            *PricingTable `protobuf:"bytes,2,opt,name=pricing,proto3" json:"pricing,omitempty"`
	ProviderAddress    []byte        `protobuf:"bytes,3,opt,name=providerAddress,proto3" json:"providerAddress,omitempty"`
	// contains filtered or unexported fields
}

func (*CapacityResponse) Descriptor deprecated

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

Deprecated: Use CapacityResponse.ProtoReflect.Descriptor instead.

func (*CapacityResponse) GetAvailableResources

func (x *CapacityResponse) GetAvailableResources() []*Resource

func (*CapacityResponse) GetPricing

func (x *CapacityResponse) GetPricing() *PricingTable

func (*CapacityResponse) GetProviderAddress

func (x *CapacityResponse) GetProviderAddress() []byte

func (*CapacityResponse) ProtoMessage

func (*CapacityResponse) ProtoMessage()

func (*CapacityResponse) ProtoReflect

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

func (*CapacityResponse) Reset

func (x *CapacityResponse) Reset()

func (*CapacityResponse) String

func (x *CapacityResponse) String() string

type Container

type Container struct {
	Name             string                   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Image            *Container_Image         `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"`
	Entrypoint       []string                 `protobuf:"bytes,3,rep,name=entrypoint,proto3" json:"entrypoint,omitempty"`
	Command          []string                 `protobuf:"bytes,4,rep,name=command,proto3" json:"command,omitempty"`
	WorkingDir       string                   `protobuf:"bytes,5,opt,name=workingDir,proto3" json:"workingDir,omitempty"`
	Ports            []*Container_Port        `protobuf:"bytes,6,rep,name=ports,proto3" json:"ports,omitempty"`
	Env              map[string]string        `` /* 147-byte string literal not displayed */
	Volumes          []*Container_VolumeMount `protobuf:"bytes,8,rep,name=volumes,proto3" json:"volumes,omitempty"`
	ResourceRequests []*Resource              `protobuf:"bytes,9,rep,name=resourceRequests,proto3" json:"resourceRequests,omitempty"` // "cpu", "memory", custom
	// contains filtered or unexported fields
}

func (*Container) Descriptor deprecated

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

Deprecated: Use Container.ProtoReflect.Descriptor instead.

func (*Container) GetCommand

func (x *Container) GetCommand() []string

func (*Container) GetEntrypoint

func (x *Container) GetEntrypoint() []string

func (*Container) GetEnv

func (x *Container) GetEnv() map[string]string

func (*Container) GetImage

func (x *Container) GetImage() *Container_Image

func (*Container) GetName

func (x *Container) GetName() string

func (*Container) GetPorts

func (x *Container) GetPorts() []*Container_Port

func (*Container) GetResourceRequests

func (x *Container) GetResourceRequests() []*Resource

func (*Container) GetVolumes

func (x *Container) GetVolumes() []*Container_VolumeMount

func (*Container) GetWorkingDir

func (x *Container) GetWorkingDir() string

func (*Container) ProtoMessage

func (*Container) ProtoMessage()

func (*Container) ProtoReflect

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

func (*Container) Reset

func (x *Container) Reset()

func (*Container) String

func (x *Container) String() string

type Container_Image

type Container_Image struct {
	Cid []byte `protobuf:"bytes,1,opt,name=cid,proto3" json:"cid,omitempty"`
	Key *Key   `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"`
	// contains filtered or unexported fields
}

func (*Container_Image) Descriptor deprecated

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

Deprecated: Use Container_Image.ProtoReflect.Descriptor instead.

func (*Container_Image) GetCid

func (x *Container_Image) GetCid() []byte

func (*Container_Image) GetKey

func (x *Container_Image) GetKey() *Key

func (*Container_Image) GetUrl

func (x *Container_Image) GetUrl() string

func (*Container_Image) ProtoMessage

func (*Container_Image) ProtoMessage()

func (*Container_Image) ProtoReflect

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

func (*Container_Image) Reset

func (x *Container_Image) Reset()

func (*Container_Image) String

func (x *Container_Image) String() string

type Container_Port

type Container_Port struct {
	Name          string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	ContainerPort uint64 `protobuf:"varint,2,opt,name=containerPort,proto3" json:"containerPort,omitempty"`
	ServicePort   uint64 `protobuf:"varint,3,opt,name=servicePort,proto3" json:"servicePort,omitempty"`
	// Types that are assignable to ExposedPort:
	//
	//	*Container_Port_HostHttpHost
	//	*Container_Port_HostTcpPort
	ExposedPort isContainer_Port_ExposedPort `protobuf_oneof:"exposedPort"`
	// contains filtered or unexported fields
}

func (*Container_Port) Descriptor deprecated

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

Deprecated: Use Container_Port.ProtoReflect.Descriptor instead.

func (*Container_Port) GetContainerPort

func (x *Container_Port) GetContainerPort() uint64

func (*Container_Port) GetExposedPort

func (m *Container_Port) GetExposedPort() isContainer_Port_ExposedPort

func (*Container_Port) GetHostHttpHost

func (x *Container_Port) GetHostHttpHost() string

func (*Container_Port) GetHostTcpPort

func (x *Container_Port) GetHostTcpPort() uint64

func (*Container_Port) GetName

func (x *Container_Port) GetName() string

func (*Container_Port) GetServicePort

func (x *Container_Port) GetServicePort() uint64

func (*Container_Port) ProtoMessage

func (*Container_Port) ProtoMessage()

func (*Container_Port) ProtoReflect

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

func (*Container_Port) Reset

func (x *Container_Port) Reset()

func (*Container_Port) String

func (x *Container_Port) String() string

type Container_Port_HostHttpHost

type Container_Port_HostHttpHost struct {
	HostHttpHost string `protobuf:"bytes,4,opt,name=hostHttpHost,proto3,oneof"`
}

type Container_Port_HostTcpPort

type Container_Port_HostTcpPort struct {
	// string hostHttpsHost = 4;
	HostTcpPort uint64 `protobuf:"varint,5,opt,name=hostTcpPort,proto3,oneof"`
}

type Container_VolumeMount

type Container_VolumeMount struct {
	Name      string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	MountPath string `protobuf:"bytes,2,opt,name=mountPath,proto3" json:"mountPath,omitempty"`
	ReadOnly  bool   `protobuf:"varint,3,opt,name=readOnly,proto3" json:"readOnly,omitempty"`
	// contains filtered or unexported fields
}

func (*Container_VolumeMount) Descriptor deprecated

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

Deprecated: Use Container_VolumeMount.ProtoReflect.Descriptor instead.

func (*Container_VolumeMount) GetMountPath

func (x *Container_VolumeMount) GetMountPath() string

func (*Container_VolumeMount) GetName

func (x *Container_VolumeMount) GetName() string

func (*Container_VolumeMount) GetReadOnly

func (x *Container_VolumeMount) GetReadOnly() bool

func (*Container_VolumeMount) ProtoMessage

func (*Container_VolumeMount) ProtoMessage()

func (*Container_VolumeMount) ProtoReflect

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

func (*Container_VolumeMount) Reset

func (x *Container_VolumeMount) Reset()

func (*Container_VolumeMount) String

func (x *Container_VolumeMount) String() string

type DeletePodRequest

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

func (*DeletePodRequest) Descriptor deprecated

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

Deprecated: Use DeletePodRequest.ProtoReflect.Descriptor instead.

func (*DeletePodRequest) ProtoMessage

func (*DeletePodRequest) ProtoMessage()

func (*DeletePodRequest) ProtoReflect

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

func (*DeletePodRequest) Reset

func (x *DeletePodRequest) Reset()

func (*DeletePodRequest) String

func (x *DeletePodRequest) String() string

type DeletePodResponse

type DeletePodResponse struct {
	Success bool   `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	Error   string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*DeletePodResponse) Descriptor deprecated

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

Deprecated: Use DeletePodResponse.ProtoReflect.Descriptor instead.

func (*DeletePodResponse) GetError

func (x *DeletePodResponse) GetError() string

func (*DeletePodResponse) GetSuccess

func (x *DeletePodResponse) GetSuccess() bool

func (*DeletePodResponse) ProtoMessage

func (*DeletePodResponse) ProtoMessage()

func (*DeletePodResponse) ProtoReflect

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

func (*DeletePodResponse) Reset

func (x *DeletePodResponse) Reset()

func (*DeletePodResponse) String

func (x *DeletePodResponse) String() string

type Deployment

type Deployment struct {
	PodManifestFile string                `protobuf:"bytes,1,opt,name=podManifestFile,proto3" json:"podManifestFile,omitempty"`
	Provider        *ProviderConfig       `protobuf:"bytes,2,opt,name=provider,proto3" json:"provider,omitempty"`
	Payment         *PaymentChannelConfig `protobuf:"bytes,3,opt,name=payment,proto3" json:"payment,omitempty"`
	Images          []*UploadedImage      `protobuf:"bytes,4,rep,name=images,proto3" json:"images,omitempty"`
	Secrets         []*UploadedSecret     `protobuf:"bytes,5,rep,name=secrets,proto3" json:"secrets,omitempty"`
	Deployed        *ProvisionPodResponse `protobuf:"bytes,6,opt,name=deployed,proto3" json:"deployed,omitempty"`
	// contains filtered or unexported fields
}

func (*Deployment) Descriptor deprecated

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

Deprecated: Use Deployment.ProtoReflect.Descriptor instead.

func (*Deployment) GetDeployed

func (x *Deployment) GetDeployed() *ProvisionPodResponse

func (*Deployment) GetImages

func (x *Deployment) GetImages() []*UploadedImage

func (*Deployment) GetPayment

func (x *Deployment) GetPayment() *PaymentChannelConfig

func (*Deployment) GetPodManifestFile

func (x *Deployment) GetPodManifestFile() string

func (*Deployment) GetProvider

func (x *Deployment) GetProvider() *ProviderConfig

func (*Deployment) GetSecrets

func (x *Deployment) GetSecrets() []*UploadedSecret

func (*Deployment) ProtoMessage

func (*Deployment) ProtoMessage()

func (*Deployment) ProtoReflect

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

func (*Deployment) Reset

func (x *Deployment) Reset()

func (*Deployment) String

func (x *Deployment) String() string

type Format

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

func (Format) Marshal

func (f Format) Marshal(m protoreflect.ProtoMessage) ([]byte, error)

func (Format) Unmarshal

func (f Format) Unmarshal(b []byte, m protoreflect.ProtoMessage) error

type HostInfo

type HostInfo struct {
	Multiaddrs []string           `protobuf:"bytes,1,rep,name=multiaddrs,proto3" json:"multiaddrs,omitempty"`
	Regions    []*HostInfo_Region `protobuf:"bytes,2,rep,name=regions,proto3" json:"regions,omitempty"`
	// contains filtered or unexported fields
}

func (*HostInfo) Descriptor deprecated

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

Deprecated: Use HostInfo.ProtoReflect.Descriptor instead.

func (*HostInfo) GetMultiaddrs

func (x *HostInfo) GetMultiaddrs() []string

func (*HostInfo) GetRegions

func (x *HostInfo) GetRegions() []*HostInfo_Region

func (*HostInfo) ProtoMessage

func (*HostInfo) ProtoMessage()

func (*HostInfo) ProtoReflect

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

func (*HostInfo) Reset

func (x *HostInfo) Reset()

func (*HostInfo) String

func (x *HostInfo) String() string

type HostInfo_Region

type HostInfo_Region struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Zone string `protobuf:"bytes,2,opt,name=zone,proto3" json:"zone,omitempty"`
	Num  uint32 `protobuf:"varint,3,opt,name=num,proto3" json:"num,omitempty"`
	// contains filtered or unexported fields
}

func (*HostInfo_Region) Descriptor deprecated

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

Deprecated: Use HostInfo_Region.ProtoReflect.Descriptor instead.

func (*HostInfo_Region) GetName

func (x *HostInfo_Region) GetName() string

func (*HostInfo_Region) GetNum

func (x *HostInfo_Region) GetNum() uint32

func (*HostInfo_Region) GetZone

func (x *HostInfo_Region) GetZone() string

func (*HostInfo_Region) ProtoMessage

func (*HostInfo_Region) ProtoMessage()

func (*HostInfo_Region) ProtoReflect

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

func (*HostInfo_Region) Reset

func (x *HostInfo_Region) Reset()

func (*HostInfo_Region) String

func (x *HostInfo_Region) String() string

type Key

type Key struct {
	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*Key) Descriptor deprecated

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

Deprecated: Use Key.ProtoReflect.Descriptor instead.

func (*Key) GetData

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

func (*Key) ProtoMessage

func (*Key) ProtoMessage()

func (*Key) ProtoReflect

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

func (*Key) Reset

func (x *Key) Reset()

func (*Key) String

func (x *Key) String() string

type LogEntry

type LogEntry struct {
	NanosecondsUnixEpoch uint64 `protobuf:"varint,1,opt,name=NanosecondsUnixEpoch,proto3" json:"NanosecondsUnixEpoch,omitempty"`
	Log                  string `protobuf:"bytes,2,opt,name=log,proto3" json:"log,omitempty"`
	Stream               string `protobuf:"bytes,3,opt,name=stream,proto3" json:"stream,omitempty"` // std(in/out/err)
	Time                 string `protobuf:"bytes,4,opt,name=time,proto3" json:"time,omitempty"`
	// contains filtered or unexported fields
}

func (*LogEntry) Descriptor deprecated

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

Deprecated: Use LogEntry.ProtoReflect.Descriptor instead.

func (*LogEntry) GetLog

func (x *LogEntry) GetLog() string

func (*LogEntry) GetNanosecondsUnixEpoch

func (x *LogEntry) GetNanosecondsUnixEpoch() uint64

func (*LogEntry) GetStream

func (x *LogEntry) GetStream() string

func (*LogEntry) GetTime

func (x *LogEntry) GetTime() string

func (*LogEntry) ProtoMessage

func (*LogEntry) ProtoMessage()

func (*LogEntry) ProtoReflect

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

func (*LogEntry) Reset

func (x *LogEntry) Reset()

func (*LogEntry) String

func (x *LogEntry) String() string

type PaymentChannel

type PaymentChannel struct {
	ChainID          []byte `protobuf:"bytes,1,opt,name=chainID,proto3" json:"chainID,omitempty"`
	ContractAddress  []byte `protobuf:"bytes,2,opt,name=contractAddress,proto3" json:"contractAddress,omitempty"`
	PublisherAddress []byte `protobuf:"bytes,3,opt,name=publisherAddress,proto3" json:"publisherAddress,omitempty"`
	ProviderAddress  []byte `protobuf:"bytes,4,opt,name=providerAddress,proto3" json:"providerAddress,omitempty"`
	PodID            []byte `protobuf:"bytes,5,opt,name=podID,proto3" json:"podID,omitempty"`
	// contains filtered or unexported fields
}

func (*PaymentChannel) Descriptor deprecated

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

Deprecated: Use PaymentChannel.ProtoReflect.Descriptor instead.

func (*PaymentChannel) GetChainID

func (x *PaymentChannel) GetChainID() []byte

func (*PaymentChannel) GetContractAddress

func (x *PaymentChannel) GetContractAddress() []byte

func (*PaymentChannel) GetPodID

func (x *PaymentChannel) GetPodID() []byte

func (*PaymentChannel) GetProviderAddress

func (x *PaymentChannel) GetProviderAddress() []byte

func (*PaymentChannel) GetPublisherAddress

func (x *PaymentChannel) GetPublisherAddress() []byte

func (*PaymentChannel) ProtoMessage

func (*PaymentChannel) ProtoMessage()

func (*PaymentChannel) ProtoReflect

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

func (*PaymentChannel) Reset

func (x *PaymentChannel) Reset()

func (*PaymentChannel) String

func (x *PaymentChannel) String() string

type PaymentChannelConfig

type PaymentChannelConfig struct {
	ChainID                []byte `protobuf:"bytes,1,opt,name=chainID,proto3" json:"chainID,omitempty"`
	PaymentContractAddress []byte `protobuf:"bytes,2,opt,name=paymentContractAddress,proto3" json:"paymentContractAddress,omitempty"`
	PublisherAddress       []byte `protobuf:"bytes,3,opt,name=publisherAddress,proto3" json:"publisherAddress,omitempty"`
	PodID                  []byte `protobuf:"bytes,5,opt,name=podID,proto3" json:"podID,omitempty"`
	// contains filtered or unexported fields
}

func (*PaymentChannelConfig) Descriptor deprecated

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

Deprecated: Use PaymentChannelConfig.ProtoReflect.Descriptor instead.

func (*PaymentChannelConfig) GetChainID

func (x *PaymentChannelConfig) GetChainID() []byte

func (*PaymentChannelConfig) GetPaymentContractAddress

func (x *PaymentChannelConfig) GetPaymentContractAddress() []byte

func (*PaymentChannelConfig) GetPodID

func (x *PaymentChannelConfig) GetPodID() []byte

func (*PaymentChannelConfig) GetPublisherAddress

func (x *PaymentChannelConfig) GetPublisherAddress() []byte

func (*PaymentChannelConfig) ProtoMessage

func (*PaymentChannelConfig) ProtoMessage()

func (*PaymentChannelConfig) ProtoReflect

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

func (*PaymentChannelConfig) Reset

func (x *PaymentChannelConfig) Reset()

func (*PaymentChannelConfig) String

func (x *PaymentChannelConfig) String() string

type Pod

type Pod struct {
	Containers []*Container `protobuf:"bytes,1,rep,name=containers,proto3" json:"containers,omitempty"`
	Volumes    []*Volume    `protobuf:"bytes,2,rep,name=volumes,proto3" json:"volumes,omitempty"`
	Replicas   *Replicas    `protobuf:"bytes,3,opt,name=replicas,proto3" json:"replicas,omitempty"`
	// contains filtered or unexported fields
}

func (*Pod) Descriptor deprecated

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

Deprecated: Use Pod.ProtoReflect.Descriptor instead.

func (*Pod) GetContainers

func (x *Pod) GetContainers() []*Container

func (*Pod) GetReplicas

func (x *Pod) GetReplicas() *Replicas

func (*Pod) GetVolumes

func (x *Pod) GetVolumes() []*Volume

func (*Pod) ProtoMessage

func (*Pod) ProtoMessage()

func (*Pod) ProtoReflect

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

func (*Pod) Reset

func (x *Pod) Reset()

func (*Pod) String

func (x *Pod) String() string

type PodLogRequest

type PodLogRequest struct {
	ContainerName string `protobuf:"bytes,1,opt,name=containerName,proto3" json:"containerName,omitempty"`
	// contains filtered or unexported fields
}

func (*PodLogRequest) Descriptor deprecated

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

Deprecated: Use PodLogRequest.ProtoReflect.Descriptor instead.

func (*PodLogRequest) GetContainerName

func (x *PodLogRequest) GetContainerName() string

func (*PodLogRequest) ProtoMessage

func (*PodLogRequest) ProtoMessage()

func (*PodLogRequest) ProtoReflect

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

func (*PodLogRequest) Reset

func (x *PodLogRequest) Reset()

func (*PodLogRequest) String

func (x *PodLogRequest) String() string

type PodLogResponse

type PodLogResponse struct {
	LogEntry *LogEntry `protobuf:"bytes,1,opt,name=logEntry,proto3" json:"logEntry,omitempty"`
	// contains filtered or unexported fields
}

func (*PodLogResponse) Descriptor deprecated

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

Deprecated: Use PodLogResponse.ProtoReflect.Descriptor instead.

func (*PodLogResponse) GetLogEntry

func (x *PodLogResponse) GetLogEntry() *LogEntry

func (*PodLogResponse) ProtoMessage

func (*PodLogResponse) ProtoMessage()

func (*PodLogResponse) ProtoReflect

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

func (*PodLogResponse) Reset

func (x *PodLogResponse) Reset()

func (*PodLogResponse) String

func (x *PodLogResponse) String() string

type PricedResource

type PricedResource struct {
	Resource            string `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
	PriceForReservation uint64 `protobuf:"varint,2,opt,name=priceForReservation,proto3" json:"priceForReservation,omitempty"`
	PriceForUsage       uint64 `protobuf:"varint,3,opt,name=priceForUsage,proto3" json:"priceForUsage,omitempty"` // uint64 priceForLimit = 4;
	// contains filtered or unexported fields
}

func (*PricedResource) Descriptor deprecated

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

Deprecated: Use PricedResource.ProtoReflect.Descriptor instead.

func (*PricedResource) GetPriceForReservation

func (x *PricedResource) GetPriceForReservation() uint64

func (*PricedResource) GetPriceForUsage

func (x *PricedResource) GetPriceForUsage() uint64

func (*PricedResource) GetResource

func (x *PricedResource) GetResource() string

func (*PricedResource) ProtoMessage

func (*PricedResource) ProtoMessage()

func (*PricedResource) ProtoReflect

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

func (*PricedResource) Reset

func (x *PricedResource) Reset()

func (*PricedResource) String

func (x *PricedResource) String() string

type PricingTable

type PricingTable struct {
	Resources              []*PricedResource `protobuf:"bytes,1,rep,name=resources,proto3" json:"resources,omitempty"`
	PaymentContractAddress []byte            `protobuf:"bytes,2,opt,name=paymentContractAddress,proto3" json:"paymentContractAddress,omitempty"`
	// contains filtered or unexported fields
}

func (*PricingTable) Descriptor deprecated

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

Deprecated: Use PricingTable.ProtoReflect.Descriptor instead.

func (*PricingTable) GetPaymentContractAddress

func (x *PricingTable) GetPaymentContractAddress() []byte

func (*PricingTable) GetResources

func (x *PricingTable) GetResources() []*PricedResource

func (*PricingTable) ProtoMessage

func (*PricingTable) ProtoMessage()

func (*PricingTable) ProtoReflect

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

func (*PricingTable) Reset

func (x *PricingTable) Reset()

func (*PricingTable) String

func (x *PricingTable) String() string

type PricingTables

type PricingTables struct {
	Tables []*PricingTable `protobuf:"bytes,1,rep,name=tables,proto3" json:"tables,omitempty"`
	// contains filtered or unexported fields
}

func (*PricingTables) Descriptor deprecated

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

Deprecated: Use PricingTables.ProtoReflect.Descriptor instead.

func (*PricingTables) GetTables

func (x *PricingTables) GetTables() []*PricingTable

func (*PricingTables) ProtoMessage

func (*PricingTables) ProtoMessage()

func (*PricingTables) ProtoReflect

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

func (*PricingTables) Reset

func (x *PricingTables) Reset()

func (*PricingTables) String

func (x *PricingTables) String() string

type ProviderConfig

type ProviderConfig struct {
	EthereumAddress []byte `protobuf:"bytes,1,opt,name=ethereumAddress,proto3" json:"ethereumAddress,omitempty"`
	Libp2PAddress   string `protobuf:"bytes,2,opt,name=libp2pAddress,proto3" json:"libp2pAddress,omitempty"`
	// contains filtered or unexported fields
}

func (*ProviderConfig) Descriptor deprecated

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

Deprecated: Use ProviderConfig.ProtoReflect.Descriptor instead.

func (*ProviderConfig) GetEthereumAddress

func (x *ProviderConfig) GetEthereumAddress() []byte

func (*ProviderConfig) GetLibp2PAddress

func (x *ProviderConfig) GetLibp2PAddress() string

func (*ProviderConfig) ProtoMessage

func (*ProviderConfig) ProtoMessage()

func (*ProviderConfig) ProtoReflect

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

func (*ProviderConfig) Reset

func (x *ProviderConfig) Reset()

func (*ProviderConfig) String

func (x *ProviderConfig) String() string

type ProvisionPodRequest

type ProvisionPodRequest struct {
	Pod     *Pod            `protobuf:"bytes,1,opt,name=pod,proto3" json:"pod,omitempty"`
	Payment *PaymentChannel `protobuf:"bytes,3,opt,name=payment,proto3" json:"payment,omitempty"`
	// contains filtered or unexported fields
}

func (*ProvisionPodRequest) Descriptor deprecated

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

Deprecated: Use ProvisionPodRequest.ProtoReflect.Descriptor instead.

func (*ProvisionPodRequest) GetPayment

func (x *ProvisionPodRequest) GetPayment() *PaymentChannel

func (*ProvisionPodRequest) GetPod

func (x *ProvisionPodRequest) GetPod() *Pod

func (*ProvisionPodRequest) ProtoMessage

func (*ProvisionPodRequest) ProtoMessage()

func (*ProvisionPodRequest) ProtoReflect

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

func (*ProvisionPodRequest) Reset

func (x *ProvisionPodRequest) Reset()

func (*ProvisionPodRequest) String

func (x *ProvisionPodRequest) String() string

type ProvisionPodResponse

type ProvisionPodResponse struct {
	Error     string                                  `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
	Addresses []*ProvisionPodResponse_ExposedHostPort `protobuf:"bytes,2,rep,name=addresses,proto3" json:"addresses,omitempty"`
	Namespace string                                  `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"`
	// contains filtered or unexported fields
}

func (*ProvisionPodResponse) Descriptor deprecated

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

Deprecated: Use ProvisionPodResponse.ProtoReflect.Descriptor instead.

func (*ProvisionPodResponse) GetAddresses

func (*ProvisionPodResponse) GetError

func (x *ProvisionPodResponse) GetError() string

func (*ProvisionPodResponse) GetNamespace

func (x *ProvisionPodResponse) GetNamespace() string

func (*ProvisionPodResponse) ProtoMessage

func (*ProvisionPodResponse) ProtoMessage()

func (*ProvisionPodResponse) ProtoReflect

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

func (*ProvisionPodResponse) Reset

func (x *ProvisionPodResponse) Reset()

func (*ProvisionPodResponse) String

func (x *ProvisionPodResponse) String() string

type ProvisionPodResponse_ExposedHostPort

type ProvisionPodResponse_ExposedHostPort struct {
	Multiaddr     string `protobuf:"bytes,1,opt,name=multiaddr,proto3" json:"multiaddr,omitempty"`
	ContainerName string `protobuf:"bytes,2,opt,name=containerName,proto3" json:"containerName,omitempty"`
	ContainerPort uint64 `protobuf:"varint,3,opt,name=containerPort,proto3" json:"containerPort,omitempty"`
	// contains filtered or unexported fields
}

func (*ProvisionPodResponse_ExposedHostPort) Descriptor deprecated

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

Deprecated: Use ProvisionPodResponse_ExposedHostPort.ProtoReflect.Descriptor instead.

func (*ProvisionPodResponse_ExposedHostPort) GetContainerName

func (x *ProvisionPodResponse_ExposedHostPort) GetContainerName() string

func (*ProvisionPodResponse_ExposedHostPort) GetContainerPort

func (x *ProvisionPodResponse_ExposedHostPort) GetContainerPort() uint64

func (*ProvisionPodResponse_ExposedHostPort) GetMultiaddr

func (x *ProvisionPodResponse_ExposedHostPort) GetMultiaddr() string

func (*ProvisionPodResponse_ExposedHostPort) ProtoMessage

func (*ProvisionPodResponse_ExposedHostPort) ProtoMessage()

func (*ProvisionPodResponse_ExposedHostPort) ProtoReflect

func (*ProvisionPodResponse_ExposedHostPort) Reset

func (*ProvisionPodResponse_ExposedHostPort) String

type Replicas

type Replicas struct {
	Min                   uint32 `protobuf:"varint,1,opt,name=min,proto3" json:"min,omitempty"`
	Max                   uint32 `protobuf:"varint,2,opt,name=max,proto3" json:"max,omitempty"`
	TargetPendingRequests uint32 `protobuf:"varint,3,opt,name=targetPendingRequests,proto3" json:"targetPendingRequests,omitempty"`
	// contains filtered or unexported fields
}

func (*Replicas) Descriptor deprecated

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

Deprecated: Use Replicas.ProtoReflect.Descriptor instead.

func (*Replicas) GetMax

func (x *Replicas) GetMax() uint32

func (*Replicas) GetMin

func (x *Replicas) GetMin() uint32

func (*Replicas) GetTargetPendingRequests

func (x *Replicas) GetTargetPendingRequests() uint32

func (*Replicas) ProtoMessage

func (*Replicas) ProtoMessage()

func (*Replicas) ProtoReflect

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

func (*Replicas) Reset

func (x *Replicas) Reset()

func (*Replicas) String

func (x *Replicas) String() string

type Resource

type Resource struct {
	Resource string `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
	// Types that are assignable to Quantity:
	//
	//	*Resource_Amount
	//	*Resource_AmountMillis
	Quantity isResource_Quantity `protobuf_oneof:"quantity"`
	// contains filtered or unexported fields
}

func (*Resource) Descriptor deprecated

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

Deprecated: Use Resource.ProtoReflect.Descriptor instead.

func (*Resource) GetAmount

func (x *Resource) GetAmount() uint64

func (*Resource) GetAmountMillis

func (x *Resource) GetAmountMillis() uint64

func (*Resource) GetQuantity

func (m *Resource) GetQuantity() isResource_Quantity

func (*Resource) GetResource

func (x *Resource) GetResource() string

func (*Resource) ProtoMessage

func (*Resource) ProtoMessage()

func (*Resource) ProtoReflect

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

func (*Resource) Reset

func (x *Resource) Reset()

func (*Resource) String

func (x *Resource) String() string

type Resource_Amount

type Resource_Amount struct {
	Amount uint64 `protobuf:"varint,2,opt,name=amount,proto3,oneof"`
}

type Resource_AmountMillis

type Resource_AmountMillis struct {
	AmountMillis uint64 `protobuf:"varint,3,opt,name=amountMillis,proto3,oneof"`
}

type UpdatePodRequest

type UpdatePodRequest struct {
	Pod *Pod `protobuf:"bytes,1,opt,name=pod,proto3" json:"pod,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdatePodRequest) Descriptor deprecated

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

Deprecated: Use UpdatePodRequest.ProtoReflect.Descriptor instead.

func (*UpdatePodRequest) GetPod

func (x *UpdatePodRequest) GetPod() *Pod

func (*UpdatePodRequest) ProtoMessage

func (*UpdatePodRequest) ProtoMessage()

func (*UpdatePodRequest) ProtoReflect

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

func (*UpdatePodRequest) Reset

func (x *UpdatePodRequest) Reset()

func (*UpdatePodRequest) String

func (x *UpdatePodRequest) String() string

type UpdatePodResponse

type UpdatePodResponse struct {
	Success bool   `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	Error   string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdatePodResponse) Descriptor deprecated

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

Deprecated: Use UpdatePodResponse.ProtoReflect.Descriptor instead.

func (*UpdatePodResponse) GetError

func (x *UpdatePodResponse) GetError() string

func (*UpdatePodResponse) GetSuccess

func (x *UpdatePodResponse) GetSuccess() bool

func (*UpdatePodResponse) ProtoMessage

func (*UpdatePodResponse) ProtoMessage()

func (*UpdatePodResponse) ProtoReflect

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

func (*UpdatePodResponse) Reset

func (x *UpdatePodResponse) Reset()

func (*UpdatePodResponse) String

func (x *UpdatePodResponse) String() string

type UploadedImage

type UploadedImage struct {
	SourceUrl string `protobuf:"bytes,1,opt,name=sourceUrl,proto3" json:"sourceUrl,omitempty"`
	Digest    string `protobuf:"bytes,2,opt,name=digest,proto3" json:"digest,omitempty"`
	Cid       []byte `protobuf:"bytes,3,opt,name=cid,proto3" json:"cid,omitempty"`
	Key       *Key   `protobuf:"bytes,4,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

func (*UploadedImage) Descriptor deprecated

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

Deprecated: Use UploadedImage.ProtoReflect.Descriptor instead.

func (*UploadedImage) GetCid

func (x *UploadedImage) GetCid() []byte

func (*UploadedImage) GetDigest

func (x *UploadedImage) GetDigest() string

func (*UploadedImage) GetKey

func (x *UploadedImage) GetKey() *Key

func (*UploadedImage) GetSourceUrl

func (x *UploadedImage) GetSourceUrl() string

func (*UploadedImage) ProtoMessage

func (*UploadedImage) ProtoMessage()

func (*UploadedImage) ProtoReflect

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

func (*UploadedImage) Reset

func (x *UploadedImage) Reset()

func (*UploadedImage) String

func (x *UploadedImage) String() string

type UploadedSecret

type UploadedSecret struct {
	VolumeName string `protobuf:"bytes,1,opt,name=volumeName,proto3" json:"volumeName,omitempty"`
	Sha256Sum  []byte `protobuf:"bytes,2,opt,name=sha256sum,proto3" json:"sha256sum,omitempty"`
	Cid        []byte `protobuf:"bytes,3,opt,name=cid,proto3" json:"cid,omitempty"`
	Key        *Key   `protobuf:"bytes,4,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

func (*UploadedSecret) Descriptor deprecated

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

Deprecated: Use UploadedSecret.ProtoReflect.Descriptor instead.

func (*UploadedSecret) GetCid

func (x *UploadedSecret) GetCid() []byte

func (*UploadedSecret) GetKey

func (x *UploadedSecret) GetKey() *Key

func (*UploadedSecret) GetSha256Sum

func (x *UploadedSecret) GetSha256Sum() []byte

func (*UploadedSecret) GetVolumeName

func (x *UploadedSecret) GetVolumeName() string

func (*UploadedSecret) ProtoMessage

func (*UploadedSecret) ProtoMessage()

func (*UploadedSecret) ProtoReflect

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

func (*UploadedSecret) Reset

func (x *UploadedSecret) Reset()

func (*UploadedSecret) String

func (x *UploadedSecret) String() string

type Volume

type Volume struct {
	Name       string            `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Type       Volume_Type       `protobuf:"varint,2,opt,name=type,proto3,enum=apocryph.proto.v0.pod.Volume_Type" json:"type,omitempty"`
	AccessMode Volume_AccessMode `protobuf:"varint,3,opt,name=accessMode,proto3,enum=apocryph.proto.v0.pod.Volume_AccessMode" json:"accessMode,omitempty"`
	// Types that are assignable to Configuration:
	//
	//	*Volume_Filesystem
	//	*Volume_Secret
	Configuration isVolume_Configuration `protobuf_oneof:"configuration"`
	// contains filtered or unexported fields
}

func (*Volume) Descriptor deprecated

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

Deprecated: Use Volume.ProtoReflect.Descriptor instead.

func (*Volume) GetAccessMode

func (x *Volume) GetAccessMode() Volume_AccessMode

func (*Volume) GetConfiguration

func (m *Volume) GetConfiguration() isVolume_Configuration

func (*Volume) GetFilesystem

func (x *Volume) GetFilesystem() *Volume_FilesystemConfig

func (*Volume) GetName

func (x *Volume) GetName() string

func (*Volume) GetSecret

func (x *Volume) GetSecret() *Volume_SecretConfig

func (*Volume) GetType

func (x *Volume) GetType() Volume_Type

func (*Volume) ProtoMessage

func (*Volume) ProtoMessage()

func (*Volume) ProtoReflect

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

func (*Volume) Reset

func (x *Volume) Reset()

func (*Volume) String

func (x *Volume) String() string

type Volume_AccessMode

type Volume_AccessMode int32
const (
	Volume_VOLUME_RW_ONE Volume_AccessMode = 0
	// VOLUME_RO_MANY = 1;
	Volume_VOLUME_RW_MANY Volume_AccessMode = 2
)

func (Volume_AccessMode) Descriptor

func (Volume_AccessMode) Enum

func (Volume_AccessMode) EnumDescriptor deprecated

func (Volume_AccessMode) EnumDescriptor() ([]byte, []int)

Deprecated: Use Volume_AccessMode.Descriptor instead.

func (Volume_AccessMode) Number

func (Volume_AccessMode) String

func (x Volume_AccessMode) String() string

func (Volume_AccessMode) Type

type Volume_Filesystem

type Volume_Filesystem struct {
	Filesystem *Volume_FilesystemConfig `protobuf:"bytes,4,opt,name=filesystem,proto3,oneof"`
}

type Volume_FilesystemConfig

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

func (*Volume_FilesystemConfig) Descriptor deprecated

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

Deprecated: Use Volume_FilesystemConfig.ProtoReflect.Descriptor instead.

func (*Volume_FilesystemConfig) GetResourceRequests

func (x *Volume_FilesystemConfig) GetResourceRequests() []*Resource

func (*Volume_FilesystemConfig) ProtoMessage

func (*Volume_FilesystemConfig) ProtoMessage()

func (*Volume_FilesystemConfig) ProtoReflect

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

func (*Volume_FilesystemConfig) Reset

func (x *Volume_FilesystemConfig) Reset()

func (*Volume_FilesystemConfig) String

func (x *Volume_FilesystemConfig) String() string

type Volume_Secret

type Volume_Secret struct {
	Secret *Volume_SecretConfig `protobuf:"bytes,5,opt,name=secret,proto3,oneof"`
}

type Volume_SecretConfig

type Volume_SecretConfig struct {
	Cid            []byte `protobuf:"bytes,1,opt,name=cid,proto3" json:"cid,omitempty"`
	Key            *Key   `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	File           string `protobuf:"bytes,101,opt,name=file,proto3" json:"file,omitempty"`
	Contents       []byte `protobuf:"bytes,102,opt,name=contents,proto3" json:"contents,omitempty"`
	ContentsString string `protobuf:"bytes,103,opt,name=contentsString,proto3" json:"contentsString,omitempty"`
	// contains filtered or unexported fields
}

func (*Volume_SecretConfig) Descriptor deprecated

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

Deprecated: Use Volume_SecretConfig.ProtoReflect.Descriptor instead.

func (*Volume_SecretConfig) GetCid

func (x *Volume_SecretConfig) GetCid() []byte

func (*Volume_SecretConfig) GetContents

func (x *Volume_SecretConfig) GetContents() []byte

func (*Volume_SecretConfig) GetContentsString

func (x *Volume_SecretConfig) GetContentsString() string

func (*Volume_SecretConfig) GetFile

func (x *Volume_SecretConfig) GetFile() string

func (*Volume_SecretConfig) GetKey

func (x *Volume_SecretConfig) GetKey() *Key

func (*Volume_SecretConfig) ProtoMessage

func (*Volume_SecretConfig) ProtoMessage()

func (*Volume_SecretConfig) ProtoReflect

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

func (*Volume_SecretConfig) Reset

func (x *Volume_SecretConfig) Reset()

func (*Volume_SecretConfig) String

func (x *Volume_SecretConfig) String() string

type Volume_Type

type Volume_Type int32
const (
	Volume_VOLUME_EMPTY      Volume_Type = 0
	Volume_VOLUME_FILESYSTEM Volume_Type = 1
	Volume_VOLUME_SECRET     Volume_Type = 2
)

func (Volume_Type) Descriptor

func (Volume_Type) Enum

func (x Volume_Type) Enum() *Volume_Type

func (Volume_Type) EnumDescriptor deprecated

func (Volume_Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use Volume_Type.Descriptor instead.

func (Volume_Type) Number

func (x Volume_Type) Number() protoreflect.EnumNumber

func (Volume_Type) String

func (x Volume_Type) String() string

func (Volume_Type) Type

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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