kdeploypb

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_kdeploy_proto protoreflect.FileDescriptor

Functions

func RegisterKdeployServiceServer

func RegisterKdeployServiceServer(s *grpc.Server, srv KdeployServiceServer)

Types

type App

type App struct {

	// name of the application
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// application namespace
	Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"`
	// docker image of application
	Image string `protobuf:"bytes,3,opt,name=image,proto3" json:"image,omitempty"`
	// k/v map of environmental variables
	Env map[string]string `` /* 147-byte string literal not displayed */
	// k/v map of ports to expose ex: http: 80 https: 443
	Ports map[string]uint32 `` /* 152-byte string literal not displayed */
	// number of deployment replicas
	Replicas uint32 `protobuf:"varint,6,opt,name=replicas,proto3" json:"replicas,omitempty"`
	// status tracks the state of the application during it's lifecycle
	Status *Status `protobuf:"bytes,7,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*App) Descriptor deprecated

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

Deprecated: Use App.ProtoReflect.Descriptor instead.

func (*App) GetEnv

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

func (*App) GetImage

func (x *App) GetImage() string

func (*App) GetName

func (x *App) GetName() string

func (*App) GetNamespace

func (x *App) GetNamespace() string

func (*App) GetPorts

func (x *App) GetPorts() map[string]uint32

func (*App) GetReplicas

func (x *App) GetReplicas() uint32

func (*App) GetStatus

func (x *App) GetStatus() *Status

func (*App) ProtoMessage

func (*App) ProtoMessage()

func (*App) ProtoReflect

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

func (*App) Reset

func (x *App) Reset()

func (*App) String

func (x *App) String() string

func (*App) Validate

func (this *App) Validate() error

type AppConstructor

type AppConstructor struct {

	// name of the application
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// application namespace
	Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"`
	// docker image of application
	Image string `protobuf:"bytes,3,opt,name=image,proto3" json:"image,omitempty"`
	// k/v map of environmental variables
	Env map[string]string `` /* 147-byte string literal not displayed */
	// k/v map of ports to expose ex: http: 80 https: 443
	Ports map[string]uint32 `` /* 152-byte string literal not displayed */
	// number of deployment replicas
	Replicas uint32 `protobuf:"varint,6,opt,name=replicas,proto3" json:"replicas,omitempty"`
	// contains filtered or unexported fields
}

func (*AppConstructor) Descriptor deprecated

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

Deprecated: Use AppConstructor.ProtoReflect.Descriptor instead.

func (*AppConstructor) GetEnv

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

func (*AppConstructor) GetImage

func (x *AppConstructor) GetImage() string

func (*AppConstructor) GetName

func (x *AppConstructor) GetName() string

func (*AppConstructor) GetNamespace

func (x *AppConstructor) GetNamespace() string

func (*AppConstructor) GetPorts

func (x *AppConstructor) GetPorts() map[string]uint32

func (*AppConstructor) GetReplicas

func (x *AppConstructor) GetReplicas() uint32

func (*AppConstructor) ProtoMessage

func (*AppConstructor) ProtoMessage()

func (*AppConstructor) ProtoReflect

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

func (*AppConstructor) Reset

func (x *AppConstructor) Reset()

func (*AppConstructor) String

func (x *AppConstructor) String() string

func (*AppConstructor) Validate

func (this *AppConstructor) Validate() error

type AppRef

type AppRef struct {

	// name of the application
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// application namespace
	Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"`
	// contains filtered or unexported fields
}

func (*AppRef) Descriptor deprecated

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

Deprecated: Use AppRef.ProtoReflect.Descriptor instead.

func (*AppRef) GetName

func (x *AppRef) GetName() string

func (*AppRef) GetNamespace

func (x *AppRef) GetNamespace() string

func (*AppRef) ProtoMessage

func (*AppRef) ProtoMessage()

func (*AppRef) ProtoReflect

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

func (*AppRef) Reset

func (x *AppRef) Reset()

func (*AppRef) String

func (x *AppRef) String() string

func (*AppRef) Validate

func (this *AppRef) Validate() error

type AppUpdate

type AppUpdate struct {

	// name of the application
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// application namespace
	Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"`
	// docker image of application
	Image string `protobuf:"bytes,3,opt,name=image,proto3" json:"image,omitempty"`
	// k/v map of environmental variables
	Env map[string]string `` /* 147-byte string literal not displayed */
	// k/v map of ports to expose ex: http: 80 https: 443
	Ports map[string]uint32 `` /* 152-byte string literal not displayed */
	// number of deployment replicas
	Replicas uint32 `protobuf:"varint,6,opt,name=replicas,proto3" json:"replicas,omitempty"`
	// contains filtered or unexported fields
}

func (*AppUpdate) Descriptor deprecated

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

Deprecated: Use AppUpdate.ProtoReflect.Descriptor instead.

func (*AppUpdate) GetEnv

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

func (*AppUpdate) GetImage

func (x *AppUpdate) GetImage() string

func (*AppUpdate) GetName

func (x *AppUpdate) GetName() string

func (*AppUpdate) GetNamespace

func (x *AppUpdate) GetNamespace() string

func (*AppUpdate) GetPorts

func (x *AppUpdate) GetPorts() map[string]uint32

func (*AppUpdate) GetReplicas

func (x *AppUpdate) GetReplicas() uint32

func (*AppUpdate) ProtoMessage

func (*AppUpdate) ProtoMessage()

func (*AppUpdate) ProtoReflect

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

func (*AppUpdate) Reset

func (x *AppUpdate) Reset()

func (*AppUpdate) String

func (x *AppUpdate) String() string

func (*AppUpdate) Validate

func (this *AppUpdate) Validate() error

type Apps

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

func (*Apps) Descriptor deprecated

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

Deprecated: Use Apps.ProtoReflect.Descriptor instead.

func (*Apps) GetApplications

func (x *Apps) GetApplications() []*App

func (*Apps) ProtoMessage

func (*Apps) ProtoMessage()

func (*Apps) ProtoReflect

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

func (*Apps) Reset

func (x *Apps) Reset()

func (*Apps) String

func (x *Apps) String() string

func (*Apps) Validate

func (this *Apps) Validate() error

type KdeployServiceClient

type KdeployServiceClient interface {
	CreateApp(ctx context.Context, in *AppConstructor, opts ...grpc.CallOption) (*App, error)
	UpdateApp(ctx context.Context, in *AppUpdate, opts ...grpc.CallOption) (*App, error)
	DeleteApp(ctx context.Context, in *AppRef, opts ...grpc.CallOption) (*empty.Empty, error)
	GetApp(ctx context.Context, in *AppRef, opts ...grpc.CallOption) (*App, error)
	Logs(ctx context.Context, in *AppRef, opts ...grpc.CallOption) (KdeployService_LogsClient, error)
	ListNamespaces(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Namespaces, error)
	ListApps(ctx context.Context, in *Namespace, opts ...grpc.CallOption) (*Apps, error)
}

KdeployServiceClient is the client API for KdeployService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type KdeployServiceServer

type KdeployServiceServer interface {
	CreateApp(context.Context, *AppConstructor) (*App, error)
	UpdateApp(context.Context, *AppUpdate) (*App, error)
	DeleteApp(context.Context, *AppRef) (*empty.Empty, error)
	GetApp(context.Context, *AppRef) (*App, error)
	Logs(*AppRef, KdeployService_LogsServer) error
	ListNamespaces(context.Context, *empty.Empty) (*Namespaces, error)
	ListApps(context.Context, *Namespace) (*Apps, error)
}

KdeployServiceServer is the server API for KdeployService service.

type KdeployService_LogsClient

type KdeployService_LogsClient interface {
	Recv() (*Log, error)
	grpc.ClientStream
}

type KdeployService_LogsServer

type KdeployService_LogsServer interface {
	Send(*Log) error
	grpc.ServerStream
}

type Log

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

func (*Log) Descriptor deprecated

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

Deprecated: Use Log.ProtoReflect.Descriptor instead.

func (*Log) GetMessage

func (x *Log) GetMessage() string

func (*Log) ProtoMessage

func (*Log) ProtoMessage()

func (*Log) ProtoReflect

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

func (*Log) Reset

func (x *Log) Reset()

func (*Log) String

func (x *Log) String() string

func (*Log) Validate

func (this *Log) Validate() error

type Namespace

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

func (*Namespace) Descriptor deprecated

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

Deprecated: Use Namespace.ProtoReflect.Descriptor instead.

func (*Namespace) GetNamespace

func (x *Namespace) GetNamespace() string

func (*Namespace) ProtoMessage

func (*Namespace) ProtoMessage()

func (*Namespace) ProtoReflect

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

func (*Namespace) Reset

func (x *Namespace) Reset()

func (*Namespace) String

func (x *Namespace) String() string

func (*Namespace) Validate

func (this *Namespace) Validate() error

type Namespaces

type Namespaces struct {
	Namespaces []string `protobuf:"bytes,1,rep,name=namespaces,proto3" json:"namespaces,omitempty"`
	// contains filtered or unexported fields
}

func (*Namespaces) Descriptor deprecated

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

Deprecated: Use Namespaces.ProtoReflect.Descriptor instead.

func (*Namespaces) GetNamespaces

func (x *Namespaces) GetNamespaces() []string

func (*Namespaces) ProtoMessage

func (*Namespaces) ProtoMessage()

func (*Namespaces) ProtoReflect

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

func (*Namespaces) Reset

func (x *Namespaces) Reset()

func (*Namespaces) String

func (x *Namespaces) String() string

func (*Namespaces) Validate

func (this *Namespaces) Validate() error

type Replica

type Replica struct {
	Phase     string `protobuf:"bytes,1,opt,name=phase,proto3" json:"phase,omitempty"`
	Condition string `protobuf:"bytes,2,opt,name=condition,proto3" json:"condition,omitempty"`
	Reason    string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"`
	// contains filtered or unexported fields
}

func (*Replica) Descriptor deprecated

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

Deprecated: Use Replica.ProtoReflect.Descriptor instead.

func (*Replica) GetCondition

func (x *Replica) GetCondition() string

func (*Replica) GetPhase

func (x *Replica) GetPhase() string

func (*Replica) GetReason

func (x *Replica) GetReason() string

func (*Replica) ProtoMessage

func (*Replica) ProtoMessage()

func (*Replica) ProtoReflect

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

func (*Replica) Reset

func (x *Replica) Reset()

func (*Replica) String

func (x *Replica) String() string

func (*Replica) Validate

func (this *Replica) Validate() error

type Status

type Status struct {
	Replicas []*Replica `protobuf:"bytes,1,rep,name=replicas,proto3" json:"replicas,omitempty"`
	// contains filtered or unexported fields
}

func (*Status) Descriptor deprecated

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

Deprecated: Use Status.ProtoReflect.Descriptor instead.

func (*Status) GetReplicas

func (x *Status) GetReplicas() []*Replica

func (*Status) ProtoMessage

func (*Status) ProtoMessage()

func (*Status) ProtoReflect

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

func (*Status) Reset

func (x *Status) Reset()

func (*Status) String

func (x *Status) String() string

func (*Status) Validate

func (this *Status) Validate() error

type UnimplementedKdeployServiceServer

type UnimplementedKdeployServiceServer struct {
}

UnimplementedKdeployServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedKdeployServiceServer) CreateApp

func (*UnimplementedKdeployServiceServer) DeleteApp

func (*UnimplementedKdeployServiceServer) GetApp

func (*UnimplementedKdeployServiceServer) ListApps

func (*UnimplementedKdeployServiceServer) ListNamespaces

func (*UnimplementedKdeployServiceServer) Logs

func (*UnimplementedKdeployServiceServer) UpdateApp

Jump to

Keyboard shortcuts

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