proto

package
v0.0.0-...-8082521 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package proto is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	TinyAppServer_CreateTinyApp_FullMethodName           = "/tiny.app.proto.TinyAppServer/CreateTinyApp"
	TinyAppServer_ListTinyApps_FullMethodName            = "/tiny.app.proto.TinyAppServer/ListTinyApps"
	TinyAppServer_UpdateTinyApp_FullMethodName           = "/tiny.app.proto.TinyAppServer/UpdateTinyApp"
	TinyAppServer_DeleteTinyApp_FullMethodName           = "/tiny.app.proto.TinyAppServer/DeleteTinyApp"
	TinyAppServer_GetTinyAppLogs_FullMethodName          = "/tiny.app.proto.TinyAppServer/GetTinyAppLogs"
	TinyAppServer_GetTinyAppAccessMetrics_FullMethodName = "/tiny.app.proto.TinyAppServer/GetTinyAppAccessMetrics"
	TinyAppServer_GetTinyAppUsageMetrics_FullMethodName  = "/tiny.app.proto.TinyAppServer/GetTinyAppUsageMetrics"
)

Variables

View Source
var (
	AppType_name = map[int32]string{
		0: "APP_TYPE_UNKNOWN",
		1: "APP_TYPE_STREAM_LIT",
		2: "APP_TYPE_DASH",
	}
	AppType_value = map[string]int32{
		"APP_TYPE_UNKNOWN":    0,
		"APP_TYPE_STREAM_LIT": 1,
		"APP_TYPE_DASH":       2,
	}
)

Enum value maps for AppType.

View Source
var (
	SourceType_name = map[int32]string{
		0: "SOURCE_TYPE_UNKNOWN",
		1: "SOURCE_TYPE_GIT",
		2: "SOURCE_TYPE_FILE_SYSTEM",
	}
	SourceType_value = map[string]int32{
		"SOURCE_TYPE_UNKNOWN":     0,
		"SOURCE_TYPE_GIT":         1,
		"SOURCE_TYPE_FILE_SYSTEM": 2,
	}
)

Enum value maps for SourceType.

View Source
var TinyAppServer_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "tiny.app.proto.TinyAppServer",
	HandlerType: (*TinyAppServerServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateTinyApp",
			Handler:    _TinyAppServer_CreateTinyApp_Handler,
		},
		{
			MethodName: "ListTinyApps",
			Handler:    _TinyAppServer_ListTinyApps_Handler,
		},
		{
			MethodName: "UpdateTinyApp",
			Handler:    _TinyAppServer_UpdateTinyApp_Handler,
		},
		{
			MethodName: "DeleteTinyApp",
			Handler:    _TinyAppServer_DeleteTinyApp_Handler,
		},
		{
			MethodName: "GetTinyAppLogs",
			Handler:    _TinyAppServer_GetTinyAppLogs_Handler,
		},
		{
			MethodName: "GetTinyAppAccessMetrics",
			Handler:    _TinyAppServer_GetTinyAppAccessMetrics_Handler,
		},
		{
			MethodName: "GetTinyAppUsageMetrics",
			Handler:    _TinyAppServer_GetTinyAppUsageMetrics_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api.proto",
}

TinyAppServer_ServiceDesc is the grpc.ServiceDesc for TinyAppServer service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterTinyAppServerHandler

func RegisterTinyAppServerHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterTinyAppServerHandler registers the http handlers for service TinyAppServer to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterTinyAppServerHandlerClient

func RegisterTinyAppServerHandlerClient(ctx context.Context, mux *runtime.ServeMux, client TinyAppServerClient) error

RegisterTinyAppServerHandlerClient registers the http handlers for service TinyAppServer to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "TinyAppServerClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "TinyAppServerClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "TinyAppServerClient" to call the correct interceptors.

func RegisterTinyAppServerHandlerFromEndpoint

func RegisterTinyAppServerHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterTinyAppServerHandlerFromEndpoint is same as RegisterTinyAppServerHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterTinyAppServerHandlerServer

func RegisterTinyAppServerHandlerServer(ctx context.Context, mux *runtime.ServeMux, server TinyAppServerServer) error

RegisterTinyAppServerHandlerServer registers the http handlers for service TinyAppServer to "mux". UnaryRPC :call TinyAppServerServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterTinyAppServerHandlerFromEndpoint instead.

func RegisterTinyAppServerServer

func RegisterTinyAppServerServer(s grpc.ServiceRegistrar, srv TinyAppServerServer)

Types

type AppType

type AppType int32
const (
	AppType_APP_TYPE_UNKNOWN    AppType = 0
	AppType_APP_TYPE_STREAM_LIT AppType = 1
	AppType_APP_TYPE_DASH       AppType = 2
)

func (AppType) Descriptor

func (AppType) Descriptor() protoreflect.EnumDescriptor

func (AppType) Enum

func (x AppType) Enum() *AppType

func (AppType) EnumDescriptor deprecated

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

Deprecated: Use AppType.Descriptor instead.

func (AppType) Number

func (x AppType) Number() protoreflect.EnumNumber

func (AppType) String

func (x AppType) String() string

func (AppType) Type

func (AppType) Type() protoreflect.EnumType

type CreateTinyAppRequest

type CreateTinyAppRequest struct {
	AppDetail *TinyAppDetail `protobuf:"bytes,1,opt,name=app_detail,json=appDetail,proto3" json:"app_detail,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateTinyAppRequest) Descriptor deprecated

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

Deprecated: Use CreateTinyAppRequest.ProtoReflect.Descriptor instead.

func (*CreateTinyAppRequest) GetAppDetail

func (x *CreateTinyAppRequest) GetAppDetail() *TinyAppDetail

func (*CreateTinyAppRequest) ProtoMessage

func (*CreateTinyAppRequest) ProtoMessage()

func (*CreateTinyAppRequest) ProtoReflect

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

func (*CreateTinyAppRequest) Reset

func (x *CreateTinyAppRequest) Reset()

func (*CreateTinyAppRequest) String

func (x *CreateTinyAppRequest) String() string

type CreateTinyAppResponse

type CreateTinyAppResponse struct {
	AppRelease *TinyAppRelease `protobuf:"bytes,1,opt,name=app_release,json=appRelease,proto3" json:"app_release,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateTinyAppResponse) Descriptor deprecated

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

Deprecated: Use CreateTinyAppResponse.ProtoReflect.Descriptor instead.

func (*CreateTinyAppResponse) GetAppRelease

func (x *CreateTinyAppResponse) GetAppRelease() *TinyAppRelease

func (*CreateTinyAppResponse) ProtoMessage

func (*CreateTinyAppResponse) ProtoMessage()

func (*CreateTinyAppResponse) ProtoReflect

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

func (*CreateTinyAppResponse) Reset

func (x *CreateTinyAppResponse) Reset()

func (*CreateTinyAppResponse) String

func (x *CreateTinyAppResponse) String() string

type DeleteTinyAppRequest

type DeleteTinyAppRequest struct {
	AppId string `protobuf:"bytes,1,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteTinyAppRequest) Descriptor deprecated

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

Deprecated: Use DeleteTinyAppRequest.ProtoReflect.Descriptor instead.

func (*DeleteTinyAppRequest) GetAppId

func (x *DeleteTinyAppRequest) GetAppId() string

func (*DeleteTinyAppRequest) ProtoMessage

func (*DeleteTinyAppRequest) ProtoMessage()

func (*DeleteTinyAppRequest) ProtoReflect

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

func (*DeleteTinyAppRequest) Reset

func (x *DeleteTinyAppRequest) Reset()

func (*DeleteTinyAppRequest) String

func (x *DeleteTinyAppRequest) String() string

type EnvVar

type EnvVar struct {
	Name  string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*EnvVar) Descriptor deprecated

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

Deprecated: Use EnvVar.ProtoReflect.Descriptor instead.

func (*EnvVar) GetName

func (x *EnvVar) GetName() string

func (*EnvVar) GetValue

func (x *EnvVar) GetValue() string

func (*EnvVar) ProtoMessage

func (*EnvVar) ProtoMessage()

func (*EnvVar) ProtoReflect

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

func (*EnvVar) Reset

func (x *EnvVar) Reset()

func (*EnvVar) String

func (x *EnvVar) String() string

type GetTinyAppAccessMetricsRequest

type GetTinyAppAccessMetricsRequest struct {
	AppId      string `protobuf:"bytes,1,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty"`
	TimePeriod string `protobuf:"bytes,2,opt,name=time_period,json=timePeriod,proto3" json:"time_period,omitempty"`
	// contains filtered or unexported fields
}

func (*GetTinyAppAccessMetricsRequest) Descriptor deprecated

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

Deprecated: Use GetTinyAppAccessMetricsRequest.ProtoReflect.Descriptor instead.

func (*GetTinyAppAccessMetricsRequest) GetAppId

func (x *GetTinyAppAccessMetricsRequest) GetAppId() string

func (*GetTinyAppAccessMetricsRequest) GetTimePeriod

func (x *GetTinyAppAccessMetricsRequest) GetTimePeriod() string

func (*GetTinyAppAccessMetricsRequest) ProtoMessage

func (*GetTinyAppAccessMetricsRequest) ProtoMessage()

func (*GetTinyAppAccessMetricsRequest) ProtoReflect

func (*GetTinyAppAccessMetricsRequest) Reset

func (x *GetTinyAppAccessMetricsRequest) Reset()

func (*GetTinyAppAccessMetricsRequest) String

type GetTinyAppAccessMetricsResponse

type GetTinyAppAccessMetricsResponse struct {
	NumberOfAccess int32 `protobuf:"varint,1,opt,name=number_of_access,json=numberOfAccess,proto3" json:"number_of_access,omitempty"`
	// contains filtered or unexported fields
}

func (*GetTinyAppAccessMetricsResponse) Descriptor deprecated

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

Deprecated: Use GetTinyAppAccessMetricsResponse.ProtoReflect.Descriptor instead.

func (*GetTinyAppAccessMetricsResponse) GetNumberOfAccess

func (x *GetTinyAppAccessMetricsResponse) GetNumberOfAccess() int32

func (*GetTinyAppAccessMetricsResponse) ProtoMessage

func (*GetTinyAppAccessMetricsResponse) ProtoMessage()

func (*GetTinyAppAccessMetricsResponse) ProtoReflect

func (*GetTinyAppAccessMetricsResponse) Reset

func (*GetTinyAppAccessMetricsResponse) String

type GetTinyAppLogsRequest

type GetTinyAppLogsRequest struct {
	AppId string `protobuf:"bytes,1,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetTinyAppLogsRequest) Descriptor deprecated

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

Deprecated: Use GetTinyAppLogsRequest.ProtoReflect.Descriptor instead.

func (*GetTinyAppLogsRequest) GetAppId

func (x *GetTinyAppLogsRequest) GetAppId() string

func (*GetTinyAppLogsRequest) ProtoMessage

func (*GetTinyAppLogsRequest) ProtoMessage()

func (*GetTinyAppLogsRequest) ProtoReflect

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

func (*GetTinyAppLogsRequest) Reset

func (x *GetTinyAppLogsRequest) Reset()

func (*GetTinyAppLogsRequest) String

func (x *GetTinyAppLogsRequest) String() string

type GetTinyAppLogsResponse

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

func (*GetTinyAppLogsResponse) Descriptor deprecated

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

Deprecated: Use GetTinyAppLogsResponse.ProtoReflect.Descriptor instead.

func (*GetTinyAppLogsResponse) GetLogs

func (x *GetTinyAppLogsResponse) GetLogs() string

func (*GetTinyAppLogsResponse) ProtoMessage

func (*GetTinyAppLogsResponse) ProtoMessage()

func (*GetTinyAppLogsResponse) ProtoReflect

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

func (*GetTinyAppLogsResponse) Reset

func (x *GetTinyAppLogsResponse) Reset()

func (*GetTinyAppLogsResponse) String

func (x *GetTinyAppLogsResponse) String() string

type GetTinyAppUsageMetricsRequest

type GetTinyAppUsageMetricsRequest struct {
	AppId      string `protobuf:"bytes,1,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty"`
	TimePeriod string `protobuf:"bytes,2,opt,name=time_period,json=timePeriod,proto3" json:"time_period,omitempty"`
	// contains filtered or unexported fields
}

func (*GetTinyAppUsageMetricsRequest) Descriptor deprecated

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

Deprecated: Use GetTinyAppUsageMetricsRequest.ProtoReflect.Descriptor instead.

func (*GetTinyAppUsageMetricsRequest) GetAppId

func (x *GetTinyAppUsageMetricsRequest) GetAppId() string

func (*GetTinyAppUsageMetricsRequest) GetTimePeriod

func (x *GetTinyAppUsageMetricsRequest) GetTimePeriod() string

func (*GetTinyAppUsageMetricsRequest) ProtoMessage

func (*GetTinyAppUsageMetricsRequest) ProtoMessage()

func (*GetTinyAppUsageMetricsRequest) ProtoReflect

func (*GetTinyAppUsageMetricsRequest) Reset

func (x *GetTinyAppUsageMetricsRequest) Reset()

func (*GetTinyAppUsageMetricsRequest) String

type GetTinyAppUsageMetricsResponse

type GetTinyAppUsageMetricsResponse struct {
	CpuUsage          float64 `protobuf:"fixed64,1,opt,name=cpu_usage,json=cpuUsage,proto3" json:"cpu_usage,omitempty"`
	CpuLimit          float64 `protobuf:"fixed64,2,opt,name=cpu_limit,json=cpuLimit,proto3" json:"cpu_limit,omitempty"`
	MemoryUsage       float64 `protobuf:"fixed64,3,opt,name=memory_usage,json=memoryUsage,proto3" json:"memory_usage,omitempty"`
	MemoryLimit       float64 `protobuf:"fixed64,4,opt,name=memory_limit,json=memoryLimit,proto3" json:"memory_limit,omitempty"`
	PercentCpuUsed    float64 `protobuf:"fixed64,5,opt,name=percent_cpu_used,json=percentCpuUsed,proto3" json:"percent_cpu_used,omitempty"`
	PercentMemoryUsed float64 `protobuf:"fixed64,6,opt,name=percent_memory_used,json=percentMemoryUsed,proto3" json:"percent_memory_used,omitempty"`
	// contains filtered or unexported fields
}

func (*GetTinyAppUsageMetricsResponse) Descriptor deprecated

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

Deprecated: Use GetTinyAppUsageMetricsResponse.ProtoReflect.Descriptor instead.

func (*GetTinyAppUsageMetricsResponse) GetCpuLimit

func (x *GetTinyAppUsageMetricsResponse) GetCpuLimit() float64

func (*GetTinyAppUsageMetricsResponse) GetCpuUsage

func (x *GetTinyAppUsageMetricsResponse) GetCpuUsage() float64

func (*GetTinyAppUsageMetricsResponse) GetMemoryLimit

func (x *GetTinyAppUsageMetricsResponse) GetMemoryLimit() float64

func (*GetTinyAppUsageMetricsResponse) GetMemoryUsage

func (x *GetTinyAppUsageMetricsResponse) GetMemoryUsage() float64

func (*GetTinyAppUsageMetricsResponse) GetPercentCpuUsed

func (x *GetTinyAppUsageMetricsResponse) GetPercentCpuUsed() float64

func (*GetTinyAppUsageMetricsResponse) GetPercentMemoryUsed

func (x *GetTinyAppUsageMetricsResponse) GetPercentMemoryUsed() float64

func (*GetTinyAppUsageMetricsResponse) ProtoMessage

func (*GetTinyAppUsageMetricsResponse) ProtoMessage()

func (*GetTinyAppUsageMetricsResponse) ProtoReflect

func (*GetTinyAppUsageMetricsResponse) Reset

func (x *GetTinyAppUsageMetricsResponse) Reset()

func (*GetTinyAppUsageMetricsResponse) String

type GitConfig

type GitConfig struct {
	Url   string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`                   // Url to clone
	Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`               // Git token for authentication. Will be empty in response.
	Ref   string `protobuf:"bytes,3,opt,name=ref,proto3" json:"ref,omitempty"`                   // Branch or tag name depending on is_tag
	IsTag bool   `protobuf:"varint,4,opt,name=is_tag,json=isTag,proto3" json:"is_tag,omitempty"` // If true, ref points to to tag instead of branch
	// contains filtered or unexported fields
}

func (*GitConfig) Descriptor deprecated

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

Deprecated: Use GitConfig.ProtoReflect.Descriptor instead.

func (*GitConfig) GetIsTag

func (x *GitConfig) GetIsTag() bool

func (*GitConfig) GetRef

func (x *GitConfig) GetRef() string

func (*GitConfig) GetToken

func (x *GitConfig) GetToken() string

func (*GitConfig) GetUrl

func (x *GitConfig) GetUrl() string

func (*GitConfig) ProtoMessage

func (*GitConfig) ProtoMessage()

func (*GitConfig) ProtoReflect

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

func (*GitConfig) Reset

func (x *GitConfig) Reset()

func (*GitConfig) String

func (x *GitConfig) String() string

type ListTinyAppsRequest

type ListTinyAppsRequest struct {
	AppId     string         `protobuf:"bytes,1,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty"`
	AppDetail *TinyAppDetail `protobuf:"bytes,2,opt,name=app_detail,json=appDetail,proto3" json:"app_detail,omitempty"`
	// contains filtered or unexported fields
}

func (*ListTinyAppsRequest) Descriptor deprecated

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

Deprecated: Use ListTinyAppsRequest.ProtoReflect.Descriptor instead.

func (*ListTinyAppsRequest) GetAppDetail

func (x *ListTinyAppsRequest) GetAppDetail() *TinyAppDetail

func (*ListTinyAppsRequest) GetAppId

func (x *ListTinyAppsRequest) GetAppId() string

func (*ListTinyAppsRequest) ProtoMessage

func (*ListTinyAppsRequest) ProtoMessage()

func (*ListTinyAppsRequest) ProtoReflect

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

func (*ListTinyAppsRequest) Reset

func (x *ListTinyAppsRequest) Reset()

func (*ListTinyAppsRequest) String

func (x *ListTinyAppsRequest) String() string

type ListTinyAppsResponse

type ListTinyAppsResponse struct {
	Apps []*TinyApp `protobuf:"bytes,1,rep,name=apps,proto3" json:"apps,omitempty"`
	// contains filtered or unexported fields
}

func (*ListTinyAppsResponse) Descriptor deprecated

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

Deprecated: Use ListTinyAppsResponse.ProtoReflect.Descriptor instead.

func (*ListTinyAppsResponse) GetApps

func (x *ListTinyAppsResponse) GetApps() []*TinyApp

func (*ListTinyAppsResponse) ProtoMessage

func (*ListTinyAppsResponse) ProtoMessage()

func (*ListTinyAppsResponse) ProtoReflect

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

func (*ListTinyAppsResponse) Reset

func (x *ListTinyAppsResponse) Reset()

func (*ListTinyAppsResponse) String

func (x *ListTinyAppsResponse) String() string

type SourceType

type SourceType int32
const (
	SourceType_SOURCE_TYPE_UNKNOWN     SourceType = 0
	SourceType_SOURCE_TYPE_GIT         SourceType = 1
	SourceType_SOURCE_TYPE_FILE_SYSTEM SourceType = 2
)

func (SourceType) Descriptor

func (SourceType) Descriptor() protoreflect.EnumDescriptor

func (SourceType) Enum

func (x SourceType) Enum() *SourceType

func (SourceType) EnumDescriptor deprecated

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

Deprecated: Use SourceType.Descriptor instead.

func (SourceType) Number

func (x SourceType) Number() protoreflect.EnumNumber

func (SourceType) String

func (x SourceType) String() string

func (SourceType) Type

type TinyApp

type TinyApp struct {
	AppRelease *TinyAppRelease `protobuf:"bytes,1,opt,name=app_release,json=appRelease,proto3" json:"app_release,omitempty"`
	AppDetail  *TinyAppDetail  `protobuf:"bytes,2,opt,name=app_detail,json=appDetail,proto3" json:"app_detail,omitempty"`
	// contains filtered or unexported fields
}

func (*TinyApp) Descriptor deprecated

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

Deprecated: Use TinyApp.ProtoReflect.Descriptor instead.

func (*TinyApp) GetAppDetail

func (x *TinyApp) GetAppDetail() *TinyAppDetail

func (*TinyApp) GetAppRelease

func (x *TinyApp) GetAppRelease() *TinyAppRelease

func (*TinyApp) ProtoMessage

func (*TinyApp) ProtoMessage()

func (*TinyApp) ProtoReflect

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

func (*TinyApp) Reset

func (x *TinyApp) Reset()

func (*TinyApp) String

func (x *TinyApp) String() string

type TinyAppDetail

type TinyAppDetail struct {
	Name                string         `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Description         string         `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Documentation       string         `protobuf:"bytes,3,opt,name=documentation,proto3" json:"documentation,omitempty"`
	Image               string         `protobuf:"bytes,4,opt,name=image,proto3" json:"image,omitempty"`
	AppType             AppType        `protobuf:"varint,5,opt,name=app_type,json=appType,proto3,enum=tiny.app.proto.AppType" json:"app_type,omitempty"`
	SourceType          SourceType     `protobuf:"varint,6,opt,name=source_type,json=sourceType,proto3,enum=tiny.app.proto.SourceType" json:"source_type,omitempty"`
	GitConfig           *GitConfig     `protobuf:"bytes,7,opt,name=git_config,json=gitConfig,proto3" json:"git_config,omitempty"`
	MainFilePath        string         `protobuf:"bytes,8,opt,name=main_file_path,json=mainFilePath,proto3" json:"main_file_path,omitempty"`
	Env                 []*EnvVar      `protobuf:"bytes,9,rep,name=env,proto3" json:"env,omitempty"`
	VolumeClaims        []*VolumeClaim `protobuf:"bytes,10,rep,name=volume_claims,json=volumeClaims,proto3" json:"volume_claims,omitempty"`
	MainVolumeClaimName string         `protobuf:"bytes,11,opt,name=mainVolumeClaimName,proto3" json:"mainVolumeClaimName,omitempty"`
	// contains filtered or unexported fields
}

func (*TinyAppDetail) Descriptor deprecated

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

Deprecated: Use TinyAppDetail.ProtoReflect.Descriptor instead.

func (*TinyAppDetail) GetAppType

func (x *TinyAppDetail) GetAppType() AppType

func (*TinyAppDetail) GetDescription

func (x *TinyAppDetail) GetDescription() string

func (*TinyAppDetail) GetDocumentation

func (x *TinyAppDetail) GetDocumentation() string

func (*TinyAppDetail) GetEnv

func (x *TinyAppDetail) GetEnv() []*EnvVar

func (*TinyAppDetail) GetGitConfig

func (x *TinyAppDetail) GetGitConfig() *GitConfig

func (*TinyAppDetail) GetImage

func (x *TinyAppDetail) GetImage() string

func (*TinyAppDetail) GetMainFilePath

func (x *TinyAppDetail) GetMainFilePath() string

func (*TinyAppDetail) GetMainVolumeClaimName

func (x *TinyAppDetail) GetMainVolumeClaimName() string

func (*TinyAppDetail) GetName

func (x *TinyAppDetail) GetName() string

func (*TinyAppDetail) GetSourceType

func (x *TinyAppDetail) GetSourceType() SourceType

func (*TinyAppDetail) GetVolumeClaims

func (x *TinyAppDetail) GetVolumeClaims() []*VolumeClaim

func (*TinyAppDetail) ProtoMessage

func (*TinyAppDetail) ProtoMessage()

func (*TinyAppDetail) ProtoReflect

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

func (*TinyAppDetail) Reset

func (x *TinyAppDetail) Reset()

func (*TinyAppDetail) String

func (x *TinyAppDetail) String() string

type TinyAppRelease

type TinyAppRelease struct {
	Id                string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	AppUrl            string `protobuf:"bytes,2,opt,name=app_url,json=appUrl,proto3" json:"app_url,omitempty"`
	CreationTimeStamp string `protobuf:"bytes,3,opt,name=creation_time_stamp,json=creationTimeStamp,proto3" json:"creation_time_stamp,omitempty"`
	AppImage          string `protobuf:"bytes,4,opt,name=app_image,json=appImage,proto3" json:"app_image,omitempty"`
	// contains filtered or unexported fields
}

func (*TinyAppRelease) Descriptor deprecated

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

Deprecated: Use TinyAppRelease.ProtoReflect.Descriptor instead.

func (*TinyAppRelease) GetAppImage

func (x *TinyAppRelease) GetAppImage() string

func (*TinyAppRelease) GetAppUrl

func (x *TinyAppRelease) GetAppUrl() string

func (*TinyAppRelease) GetCreationTimeStamp

func (x *TinyAppRelease) GetCreationTimeStamp() string

func (*TinyAppRelease) GetId

func (x *TinyAppRelease) GetId() string

func (*TinyAppRelease) ProtoMessage

func (*TinyAppRelease) ProtoMessage()

func (*TinyAppRelease) ProtoReflect

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

func (*TinyAppRelease) Reset

func (x *TinyAppRelease) Reset()

func (*TinyAppRelease) String

func (x *TinyAppRelease) String() string

type TinyAppServerClient

type TinyAppServerClient interface {
	// Creates a new app.
	CreateTinyApp(ctx context.Context, in *CreateTinyAppRequest, opts ...grpc.CallOption) (*CreateTinyAppResponse, error)
	// Gets list of apps
	ListTinyApps(ctx context.Context, in *ListTinyAppsRequest, opts ...grpc.CallOption) (*ListTinyAppsResponse, error)
	// Updates an app
	UpdateTinyApp(ctx context.Context, in *UpdateTinyAppRequest, opts ...grpc.CallOption) (*UpdateTinyAppResponse, error)
	// Deletes an app
	DeleteTinyApp(ctx context.Context, in *DeleteTinyAppRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	GetTinyAppLogs(ctx context.Context, in *GetTinyAppLogsRequest, opts ...grpc.CallOption) (*GetTinyAppLogsResponse, error)
	// Gets access metrics for a tiny app
	GetTinyAppAccessMetrics(ctx context.Context, in *GetTinyAppAccessMetricsRequest, opts ...grpc.CallOption) (*GetTinyAppAccessMetricsResponse, error)
	// Gets CPU and memory metrics for a tiny app
	GetTinyAppUsageMetrics(ctx context.Context, in *GetTinyAppUsageMetricsRequest, opts ...grpc.CallOption) (*GetTinyAppUsageMetricsResponse, error)
}

TinyAppServerClient is the client API for TinyAppServer service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type TinyAppServerServer

type TinyAppServerServer interface {
	// Creates a new app.
	CreateTinyApp(context.Context, *CreateTinyAppRequest) (*CreateTinyAppResponse, error)
	// Gets list of apps
	ListTinyApps(context.Context, *ListTinyAppsRequest) (*ListTinyAppsResponse, error)
	// Updates an app
	UpdateTinyApp(context.Context, *UpdateTinyAppRequest) (*UpdateTinyAppResponse, error)
	// Deletes an app
	DeleteTinyApp(context.Context, *DeleteTinyAppRequest) (*emptypb.Empty, error)
	GetTinyAppLogs(context.Context, *GetTinyAppLogsRequest) (*GetTinyAppLogsResponse, error)
	// Gets access metrics for a tiny app
	GetTinyAppAccessMetrics(context.Context, *GetTinyAppAccessMetricsRequest) (*GetTinyAppAccessMetricsResponse, error)
	// Gets CPU and memory metrics for a tiny app
	GetTinyAppUsageMetrics(context.Context, *GetTinyAppUsageMetricsRequest) (*GetTinyAppUsageMetricsResponse, error)
}

TinyAppServerServer is the server API for TinyAppServer service. All implementations should embed UnimplementedTinyAppServerServer for forward compatibility

type UnimplementedTinyAppServerServer

type UnimplementedTinyAppServerServer struct {
}

UnimplementedTinyAppServerServer should be embedded to have forward compatible implementations.

func (UnimplementedTinyAppServerServer) CreateTinyApp

func (UnimplementedTinyAppServerServer) DeleteTinyApp

func (UnimplementedTinyAppServerServer) GetTinyAppLogs

func (UnimplementedTinyAppServerServer) ListTinyApps

func (UnimplementedTinyAppServerServer) UpdateTinyApp

type UnsafeTinyAppServerServer

type UnsafeTinyAppServerServer interface {
	// contains filtered or unexported methods
}

UnsafeTinyAppServerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TinyAppServerServer will result in compilation errors.

type UpdateTinyAppRequest

type UpdateTinyAppRequest struct {
	AppId     string         `protobuf:"bytes,1,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty"`
	AppDetail *TinyAppDetail `protobuf:"bytes,2,opt,name=app_detail,json=appDetail,proto3" json:"app_detail,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateTinyAppRequest) Descriptor deprecated

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

Deprecated: Use UpdateTinyAppRequest.ProtoReflect.Descriptor instead.

func (*UpdateTinyAppRequest) GetAppDetail

func (x *UpdateTinyAppRequest) GetAppDetail() *TinyAppDetail

func (*UpdateTinyAppRequest) GetAppId

func (x *UpdateTinyAppRequest) GetAppId() string

func (*UpdateTinyAppRequest) ProtoMessage

func (*UpdateTinyAppRequest) ProtoMessage()

func (*UpdateTinyAppRequest) ProtoReflect

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

func (*UpdateTinyAppRequest) Reset

func (x *UpdateTinyAppRequest) Reset()

func (*UpdateTinyAppRequest) String

func (x *UpdateTinyAppRequest) String() string

type UpdateTinyAppResponse

type UpdateTinyAppResponse struct {
	AppRelease *TinyAppRelease `protobuf:"bytes,1,opt,name=app_release,json=appRelease,proto3" json:"app_release,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateTinyAppResponse) Descriptor deprecated

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

Deprecated: Use UpdateTinyAppResponse.ProtoReflect.Descriptor instead.

func (*UpdateTinyAppResponse) GetAppRelease

func (x *UpdateTinyAppResponse) GetAppRelease() *TinyAppRelease

func (*UpdateTinyAppResponse) ProtoMessage

func (*UpdateTinyAppResponse) ProtoMessage()

func (*UpdateTinyAppResponse) ProtoReflect

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

func (*UpdateTinyAppResponse) Reset

func (x *UpdateTinyAppResponse) Reset()

func (*UpdateTinyAppResponse) String

func (x *UpdateTinyAppResponse) String() string

type Volume

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

func (*Volume) Descriptor deprecated

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

Deprecated: Use Volume.ProtoReflect.Descriptor instead.

func (*Volume) GetClaimName

func (x *Volume) GetClaimName() string

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 VolumeClaim

type VolumeClaim struct {
	Name      string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	SubPath   string `protobuf:"bytes,2,opt,name=subPath,proto3" json:"subPath,omitempty"`
	MountPath string `protobuf:"bytes,3,opt,name=mountPath,proto3" json:"mountPath,omitempty"`
	// contains filtered or unexported fields
}

func (*VolumeClaim) Descriptor deprecated

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

Deprecated: Use VolumeClaim.ProtoReflect.Descriptor instead.

func (*VolumeClaim) GetMountPath

func (x *VolumeClaim) GetMountPath() string

func (*VolumeClaim) GetName

func (x *VolumeClaim) GetName() string

func (*VolumeClaim) GetSubPath

func (x *VolumeClaim) GetSubPath() string

func (*VolumeClaim) ProtoMessage

func (*VolumeClaim) ProtoMessage()

func (*VolumeClaim) ProtoReflect

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

func (*VolumeClaim) Reset

func (x *VolumeClaim) Reset()

func (*VolumeClaim) String

func (x *VolumeClaim) String() string

Jump to

Keyboard shortcuts

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