client

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ApplicationService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "ApplicationService",
	HandlerType: (*ApplicationServiceServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "ListApplications",
			Handler:       _ApplicationService_ListApplications_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "applist.proto",
}

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

View Source
var File_applist_proto protoreflect.FileDescriptor

Functions

func GatAppId

func GatAppId(clusterId int32, release *release.Release) string

GatAppId returns AppID by logic cluster_id|namespace|release_name

func RegisterApplicationServiceServer

func RegisterApplicationServiceServer(s grpc.ServiceRegistrar, srv ApplicationServiceServer)

Types

type AppListRequest

type AppListRequest struct {
	Clusters []*ClusterConfig `protobuf:"bytes,1,rep,name=clusters,proto3" json:"clusters,omitempty"`
	// contains filtered or unexported fields
}

func (*AppListRequest) Descriptor deprecated

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

Deprecated: Use AppListRequest.ProtoReflect.Descriptor instead.

func (*AppListRequest) GetClusters

func (x *AppListRequest) GetClusters() []*ClusterConfig

func (*AppListRequest) ProtoMessage

func (*AppListRequest) ProtoMessage()

func (*AppListRequest) ProtoReflect

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

func (*AppListRequest) Reset

func (x *AppListRequest) Reset()

func (*AppListRequest) String

func (x *AppListRequest) String() string

type ApplicationServiceClient

type ApplicationServiceClient interface {
	ListApplications(ctx context.Context, in *AppListRequest, opts ...grpc.CallOption) (ApplicationService_ListApplicationsClient, error)
}

ApplicationServiceClient is the client API for ApplicationService 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 ApplicationServiceServer

type ApplicationServiceServer interface {
	ListApplications(*AppListRequest, ApplicationService_ListApplicationsServer) error
	// contains filtered or unexported methods
}

ApplicationServiceServer is the server API for ApplicationService service. All implementations must embed UnimplementedApplicationServiceServer for forward compatibility

type ApplicationServiceServerImpl

type ApplicationServiceServerImpl struct {
}

func NewApplicationServiceServerImpl

func NewApplicationServiceServerImpl() *ApplicationServiceServerImpl

func (*ApplicationServiceServerImpl) ListApplications

type ApplicationService_ListApplicationsClient

type ApplicationService_ListApplicationsClient interface {
	Recv() (*DeployedAppList, error)
	grpc.ClientStream
}

type ApplicationService_ListApplicationsServer

type ApplicationService_ListApplicationsServer interface {
	Send(*DeployedAppList) error
	grpc.ServerStream
}

type ClusterConfig

type ClusterConfig struct {
	ApiServerUrl string `protobuf:"bytes,1,opt,name=apiServerUrl,proto3" json:"apiServerUrl,omitempty"`
	Token        string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	ClusterId    int32  `protobuf:"varint,3,opt,name=clusterId,proto3" json:"clusterId,omitempty"`
	// contains filtered or unexported fields
}

func (*ClusterConfig) Descriptor deprecated

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

Deprecated: Use ClusterConfig.ProtoReflect.Descriptor instead.

func (*ClusterConfig) GetApiServerUrl

func (x *ClusterConfig) GetApiServerUrl() string

func (*ClusterConfig) GetClusterId

func (x *ClusterConfig) GetClusterId() int32

func (*ClusterConfig) GetToken

func (x *ClusterConfig) GetToken() string

func (*ClusterConfig) ProtoMessage

func (*ClusterConfig) ProtoMessage()

func (*ClusterConfig) ProtoReflect

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

func (*ClusterConfig) Reset

func (x *ClusterConfig) Reset()

func (*ClusterConfig) String

func (x *ClusterConfig) String() string

type DeployedAppDetail

type DeployedAppDetail struct {
	AppId       string              `protobuf:"bytes,1,opt,name=appId,proto3" json:"appId,omitempty"`
	AppName     string              `protobuf:"bytes,2,opt,name=appName,proto3" json:"appName,omitempty"`
	ChartName   string              `protobuf:"bytes,3,opt,name=chartName,proto3" json:"chartName,omitempty"`
	ChartAvatar string              `protobuf:"bytes,4,opt,name=chartAvatar,proto3" json:"chartAvatar,omitempty"`
	Environment *EnvironmentDetails `protobuf:"bytes,5,opt,name=environment,proto3" json:"environment,omitempty"`
	// contains filtered or unexported fields
}

func (*DeployedAppDetail) Descriptor deprecated

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

Deprecated: Use DeployedAppDetail.ProtoReflect.Descriptor instead.

func (*DeployedAppDetail) GetAppId

func (x *DeployedAppDetail) GetAppId() string

func (*DeployedAppDetail) GetAppName

func (x *DeployedAppDetail) GetAppName() string

func (*DeployedAppDetail) GetChartAvatar

func (x *DeployedAppDetail) GetChartAvatar() string

func (*DeployedAppDetail) GetChartName

func (x *DeployedAppDetail) GetChartName() string

func (*DeployedAppDetail) GetEnvironment

func (x *DeployedAppDetail) GetEnvironment() *EnvironmentDetails

func (*DeployedAppDetail) ProtoMessage

func (*DeployedAppDetail) ProtoMessage()

func (*DeployedAppDetail) ProtoReflect

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

func (*DeployedAppDetail) Reset

func (x *DeployedAppDetail) Reset()

func (*DeployedAppDetail) String

func (x *DeployedAppDetail) String() string

type DeployedAppList

type DeployedAppList struct {
	DeployedAppDetail []*DeployedAppDetail `protobuf:"bytes,1,rep,name=DeployedAppDetail,proto3" json:"DeployedAppDetail,omitempty"`
	ClusterId         int32                `protobuf:"varint,2,opt,name=clusterId,proto3" json:"clusterId,omitempty"`
	ErrorMsg          string               `protobuf:"bytes,3,opt,name=errorMsg,proto3" json:"errorMsg,omitempty"`
	Errored           bool                 `protobuf:"varint,4,opt,name=errored,proto3" json:"errored,omitempty"`
	// contains filtered or unexported fields
}

func (*DeployedAppList) Descriptor deprecated

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

Deprecated: Use DeployedAppList.ProtoReflect.Descriptor instead.

func (*DeployedAppList) GetClusterId

func (x *DeployedAppList) GetClusterId() int32

func (*DeployedAppList) GetDeployedAppDetail

func (x *DeployedAppList) GetDeployedAppDetail() []*DeployedAppDetail

func (*DeployedAppList) GetErrorMsg

func (x *DeployedAppList) GetErrorMsg() string

func (*DeployedAppList) GetErrored

func (x *DeployedAppList) GetErrored() bool

func (*DeployedAppList) ProtoMessage

func (*DeployedAppList) ProtoMessage()

func (*DeployedAppList) ProtoReflect

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

func (*DeployedAppList) Reset

func (x *DeployedAppList) Reset()

func (*DeployedAppList) String

func (x *DeployedAppList) String() string

type EnvironmentDetails

type EnvironmentDetails struct {
	ClusterName string `protobuf:"bytes,1,opt,name=clusterName,proto3" json:"clusterName,omitempty"`
	ClusterId   int32  `protobuf:"varint,2,opt,name=clusterId,proto3" json:"clusterId,omitempty"`
	Namespace   string `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"`
	// contains filtered or unexported fields
}

func (*EnvironmentDetails) Descriptor deprecated

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

Deprecated: Use EnvironmentDetails.ProtoReflect.Descriptor instead.

func (*EnvironmentDetails) GetClusterId

func (x *EnvironmentDetails) GetClusterId() int32

func (*EnvironmentDetails) GetClusterName

func (x *EnvironmentDetails) GetClusterName() string

func (*EnvironmentDetails) GetNamespace

func (x *EnvironmentDetails) GetNamespace() string

func (*EnvironmentDetails) ProtoMessage

func (*EnvironmentDetails) ProtoMessage()

func (*EnvironmentDetails) ProtoReflect

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

func (*EnvironmentDetails) Reset

func (x *EnvironmentDetails) Reset()

func (*EnvironmentDetails) String

func (x *EnvironmentDetails) String() string

type UnimplementedApplicationServiceServer

type UnimplementedApplicationServiceServer struct {
}

UnimplementedApplicationServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedApplicationServiceServer) ListApplications

type UnsafeApplicationServiceServer

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

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

Jump to

Keyboard shortcuts

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