Documentation
¶
Index ¶
- Variables
- func RegisterKdeployServiceServer(s *grpc.Server, srv KdeployServiceServer)
- type App
- func (*App) Descriptor() ([]byte, []int)deprecated
- func (x *App) GetEnv() map[string]string
- func (x *App) GetImage() string
- func (x *App) GetName() string
- func (x *App) GetNamespace() string
- func (x *App) GetPorts() map[string]uint32
- func (x *App) GetReplicas() uint32
- func (x *App) GetStatus() *Status
- func (*App) ProtoMessage()
- func (x *App) ProtoReflect() protoreflect.Message
- func (x *App) Reset()
- func (x *App) String() string
- func (this *App) Validate() error
- type AppConstructor
- func (*AppConstructor) Descriptor() ([]byte, []int)deprecated
- func (x *AppConstructor) GetEnv() map[string]string
- func (x *AppConstructor) GetImage() string
- func (x *AppConstructor) GetName() string
- func (x *AppConstructor) GetNamespace() string
- func (x *AppConstructor) GetPorts() map[string]uint32
- func (x *AppConstructor) GetReplicas() uint32
- func (*AppConstructor) ProtoMessage()
- func (x *AppConstructor) ProtoReflect() protoreflect.Message
- func (x *AppConstructor) Reset()
- func (x *AppConstructor) String() string
- func (this *AppConstructor) Validate() error
- type AppRef
- func (*AppRef) Descriptor() ([]byte, []int)deprecated
- func (x *AppRef) GetName() string
- func (x *AppRef) GetNamespace() string
- func (*AppRef) ProtoMessage()
- func (x *AppRef) ProtoReflect() protoreflect.Message
- func (x *AppRef) Reset()
- func (x *AppRef) String() string
- func (this *AppRef) Validate() error
- type AppUpdate
- func (*AppUpdate) Descriptor() ([]byte, []int)deprecated
- func (x *AppUpdate) GetEnv() map[string]string
- func (x *AppUpdate) GetImage() string
- func (x *AppUpdate) GetName() string
- func (x *AppUpdate) GetNamespace() string
- func (x *AppUpdate) GetPorts() map[string]uint32
- func (x *AppUpdate) GetReplicas() uint32
- func (*AppUpdate) ProtoMessage()
- func (x *AppUpdate) ProtoReflect() protoreflect.Message
- func (x *AppUpdate) Reset()
- func (x *AppUpdate) String() string
- func (this *AppUpdate) Validate() error
- type Apps
- type KdeployServiceClient
- type KdeployServiceServer
- type KdeployService_LogsClient
- type KdeployService_LogsServer
- type Log
- type Namespace
- type Namespaces
- func (*Namespaces) Descriptor() ([]byte, []int)deprecated
- func (x *Namespaces) GetNamespaces() []string
- func (*Namespaces) ProtoMessage()
- func (x *Namespaces) ProtoReflect() protoreflect.Message
- func (x *Namespaces) Reset()
- func (x *Namespaces) String() string
- func (this *Namespaces) Validate() error
- type Replica
- func (*Replica) Descriptor() ([]byte, []int)deprecated
- func (x *Replica) GetCondition() string
- func (x *Replica) GetPhase() string
- func (x *Replica) GetReason() string
- func (*Replica) ProtoMessage()
- func (x *Replica) ProtoReflect() protoreflect.Message
- func (x *Replica) Reset()
- func (x *Replica) String() string
- func (this *Replica) Validate() error
- type Status
- type UnimplementedKdeployServiceServer
- func (*UnimplementedKdeployServiceServer) CreateApp(context.Context, *AppConstructor) (*App, error)
- func (*UnimplementedKdeployServiceServer) DeleteApp(context.Context, *AppRef) (*empty.Empty, error)
- func (*UnimplementedKdeployServiceServer) GetApp(context.Context, *AppRef) (*App, error)
- func (*UnimplementedKdeployServiceServer) ListApps(context.Context, *Namespace) (*Apps, error)
- func (*UnimplementedKdeployServiceServer) ListNamespaces(context.Context, *empty.Empty) (*Namespaces, error)
- func (*UnimplementedKdeployServiceServer) Logs(*AppRef, KdeployService_LogsServer) error
- func (*UnimplementedKdeployServiceServer) UpdateApp(context.Context, *AppUpdate) (*App, error)
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) GetNamespace ¶
func (*App) GetReplicas ¶
func (*App) ProtoMessage ¶
func (*App) ProtoMessage()
func (*App) ProtoReflect ¶
func (x *App) ProtoReflect() protoreflect.Message
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) GetNamespace ¶
func (*AppRef) ProtoMessage ¶
func (*AppRef) ProtoMessage()
func (*AppRef) ProtoReflect ¶
func (x *AppRef) ProtoReflect() protoreflect.Message
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) GetNamespace ¶
func (*AppUpdate) GetReplicas ¶
func (*AppUpdate) ProtoMessage ¶
func (*AppUpdate) ProtoMessage()
func (*AppUpdate) ProtoReflect ¶
func (x *AppUpdate) ProtoReflect() protoreflect.Message
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) GetApplications ¶
func (*Apps) ProtoMessage ¶
func (*Apps) ProtoMessage()
func (*Apps) ProtoReflect ¶
func (x *Apps) ProtoReflect() protoreflect.Message
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.
func NewKdeployServiceClient ¶
func NewKdeployServiceClient(cc grpc.ClientConnInterface) KdeployServiceClient
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) GetMessage ¶
func (*Log) ProtoMessage ¶
func (*Log) ProtoMessage()
func (*Log) ProtoReflect ¶
func (x *Log) ProtoReflect() protoreflect.Message
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) GetNamespace ¶
func (*Namespace) ProtoMessage ¶
func (*Namespace) ProtoMessage()
func (*Namespace) ProtoReflect ¶
func (x *Namespace) ProtoReflect() protoreflect.Message
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) GetCondition ¶
func (*Replica) ProtoMessage ¶
func (*Replica) ProtoMessage()
func (*Replica) ProtoReflect ¶
func (x *Replica) ProtoReflect() protoreflect.Message
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) GetReplicas ¶
func (*Status) ProtoMessage ¶
func (*Status) ProtoMessage()
func (*Status) ProtoReflect ¶
func (x *Status) ProtoReflect() protoreflect.Message
type UnimplementedKdeployServiceServer ¶
type UnimplementedKdeployServiceServer struct { }
UnimplementedKdeployServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedKdeployServiceServer) CreateApp ¶
func (*UnimplementedKdeployServiceServer) CreateApp(context.Context, *AppConstructor) (*App, error)
func (*UnimplementedKdeployServiceServer) ListNamespaces ¶
func (*UnimplementedKdeployServiceServer) ListNamespaces(context.Context, *empty.Empty) (*Namespaces, error)
func (*UnimplementedKdeployServiceServer) Logs ¶
func (*UnimplementedKdeployServiceServer) Logs(*AppRef, KdeployService_LogsServer) error
Click to show internal directories.
Click to hide internal directories.