Documentation ¶
Index ¶
- Variables
- func DescribeEvents(el *corev1.EventList) []*pb.PodEvent
- func SortedResourceNames(list corev1.ResourceList) []corev1.ResourceName
- type RuntimeServer
- func (r *RuntimeServer) AddThirdPartyEndpoint(ctx context.Context, re *pb.AddThirdPartyEndpointsReq) (*pb.Empty, error)
- func (r *RuntimeServer) DelThirdPartyEndpoint(ctx context.Context, re *pb.DelThirdPartyEndpointsReq) (*pb.Empty, error)
- func (r *RuntimeServer) GetAppPods(ctx context.Context, re *pb.ServiceRequest) (*pb.ServiceAppPodList, error)
- func (r *RuntimeServer) GetAppStatus(ctx context.Context, in *pb.AppStatusReq) (*pb.AppStatus, error)
- func (r *RuntimeServer) GetAppStatusDeprecated(ctx context.Context, re *pb.ServicesRequest) (*pb.StatusMessage, error)
- func (r *RuntimeServer) GetAppVolumeStatus(ctx context.Context, re *pb.ServiceRequest) (*pb.ServiceVolumeStatusMessage, error)
- func (r *RuntimeServer) GetComponentPodNums(ctx context.Context, re *pb.ServicesRequest) (*pb.ComponentPodNums, error)
- func (r *RuntimeServer) GetDeployInfo(ctx context.Context, re *pb.ServiceRequest) (*pb.DeployInfo, error)
- func (r *RuntimeServer) GetMultiAppPods(ctx context.Context, re *pb.ServicesRequest) (*pb.MultiServiceAppPodList, error)
- func (r *RuntimeServer) GetPodDetail(ctx context.Context, req *pb.GetPodDetailReq) (podDetail *pb.PodDetail, err error)
- func (r *RuntimeServer) GetStorageClasses(ctx context.Context, re *pb.Empty) (*pb.StorageClasses, error)
- func (r *RuntimeServer) GetTenantEnvResource(ctx context.Context, re *pb.TenantEnvRequest) (*pb.TenantEnvResource, error)
- func (r *RuntimeServer) GetTenantEnvResources(context.Context, *pb.Empty) (*pb.TenantEnvResourceList, error)
- func (r *RuntimeServer) ListAppServices(ctx context.Context, in *pb.AppReq) (*pb.AppServices, error)
- func (r *RuntimeServer) ListAppStatuses(ctx context.Context, in *pb.AppStatusesReq) (*pb.AppStatuses, error)
- func (r *RuntimeServer) ListHelmAppRelease(ctx context.Context, req *pb.AppReq) (*pb.HelmAppReleases, error)
- func (r *RuntimeServer) ListThirdPartyEndpoints(ctx context.Context, re *pb.ServiceRequest) (*pb.ThirdPartyEndpoints, error)
- func (r *RuntimeServer) Start(errchan chan error)
- func (r *RuntimeServer) UpdThirdPartyEndpoint(ctx context.Context, re *pb.UpdThirdPartyEndpointsReq) (*pb.Empty, error)
- type SortableResourceNames
Constants ¶
This section is empty.
Variables ¶
var ( // ErrAppServiceNotFound app service not found error, happens when haven't find any matched data when looking up with a service id ErrAppServiceNotFound = errors.New("app service not found") // ErrPodNotFound pod not found error, happens when haven't find any matched data when looking up with a pod name ErrPodNotFound = errors.New("pod not found") )
Functions ¶
func SortedResourceNames ¶
func SortedResourceNames(list corev1.ResourceList) []corev1.ResourceName
SortedResourceNames returns the sorted resource names of a resource list.
Types ¶
type RuntimeServer ¶
type RuntimeServer struct {
// contains filtered or unexported fields
}
RuntimeServer app runtime grpc server
func CreaterRuntimeServer ¶
func CreaterRuntimeServer(conf option.Config, store store.Storer, clientset kubernetes.Interface, updateCh *channels.RingChannel) *RuntimeServer
CreaterRuntimeServer create a runtime grpc server
func (*RuntimeServer) AddThirdPartyEndpoint ¶
func (r *RuntimeServer) AddThirdPartyEndpoint(ctx context.Context, re *pb.AddThirdPartyEndpointsReq) (*pb.Empty, error)
AddThirdPartyEndpoint creates a create event.
func (*RuntimeServer) DelThirdPartyEndpoint ¶
func (r *RuntimeServer) DelThirdPartyEndpoint(ctx context.Context, re *pb.DelThirdPartyEndpointsReq) (*pb.Empty, error)
DelThirdPartyEndpoint creates a delete event.
func (*RuntimeServer) GetAppPods ¶
func (r *RuntimeServer) GetAppPods(ctx context.Context, re *pb.ServiceRequest) (*pb.ServiceAppPodList, error)
GetAppPods get app pod list
func (*RuntimeServer) GetAppStatus ¶
func (r *RuntimeServer) GetAppStatus(ctx context.Context, in *pb.AppStatusReq) (*pb.AppStatus, error)
GetAppStatus returns the status of application based on the given appId.
func (*RuntimeServer) GetAppStatusDeprecated ¶
func (r *RuntimeServer) GetAppStatusDeprecated(ctx context.Context, re *pb.ServicesRequest) (*pb.StatusMessage, error)
GetAppStatusDeprecated get app service status
func (*RuntimeServer) GetAppVolumeStatus ¶
func (r *RuntimeServer) GetAppVolumeStatus(ctx context.Context, re *pb.ServiceRequest) (*pb.ServiceVolumeStatusMessage, error)
GetAppVolumeStatus get app volume status
func (*RuntimeServer) GetComponentPodNums ¶
func (r *RuntimeServer) GetComponentPodNums(ctx context.Context, re *pb.ServicesRequest) (*pb.ComponentPodNums, error)
GetComponentPodNums -
func (*RuntimeServer) GetDeployInfo ¶
func (r *RuntimeServer) GetDeployInfo(ctx context.Context, re *pb.ServiceRequest) (*pb.DeployInfo, error)
GetDeployInfo get deploy info
func (*RuntimeServer) GetMultiAppPods ¶
func (r *RuntimeServer) GetMultiAppPods(ctx context.Context, re *pb.ServicesRequest) (*pb.MultiServiceAppPodList, error)
GetMultiAppPods get multi app pods
func (*RuntimeServer) GetPodDetail ¶
func (r *RuntimeServer) GetPodDetail(ctx context.Context, req *pb.GetPodDetailReq) (podDetail *pb.PodDetail, err error)
GetPodDetail returns detail information of the pod based on pod name.
func (*RuntimeServer) GetStorageClasses ¶
func (r *RuntimeServer) GetStorageClasses(ctx context.Context, re *pb.Empty) (*pb.StorageClasses, error)
GetStorageClasses get storageclass list
func (*RuntimeServer) GetTenantEnvResource ¶ added in v1.1.0
func (r *RuntimeServer) GetTenantEnvResource(ctx context.Context, re *pb.TenantEnvRequest) (*pb.TenantEnvResource, error)
GetTenantEnvResource get tenant env resource if TenantEnvId is "" will return the sum of the all tenantEnv
func (*RuntimeServer) GetTenantEnvResources ¶ added in v1.1.0
func (r *RuntimeServer) GetTenantEnvResources(context.Context, *pb.Empty) (*pb.TenantEnvResourceList, error)
GetTenantEnvResources get tenant env resources
func (*RuntimeServer) ListAppServices ¶
func (r *RuntimeServer) ListAppServices(ctx context.Context, in *pb.AppReq) (*pb.AppServices, error)
ListAppServices -
func (*RuntimeServer) ListAppStatuses ¶
func (r *RuntimeServer) ListAppStatuses(ctx context.Context, in *pb.AppStatusesReq) (*pb.AppStatuses, error)
ListAppStatuses returns the statuses of application based on the given appIds.
func (*RuntimeServer) ListHelmAppRelease ¶
func (r *RuntimeServer) ListHelmAppRelease(ctx context.Context, req *pb.AppReq) (*pb.HelmAppReleases, error)
ListHelmAppRelease -
func (*RuntimeServer) ListThirdPartyEndpoints ¶
func (r *RuntimeServer) ListThirdPartyEndpoints(ctx context.Context, re *pb.ServiceRequest) (*pb.ThirdPartyEndpoints, error)
ListThirdPartyEndpoints returns a collection of third-part endpoints.
func (*RuntimeServer) Start ¶
func (r *RuntimeServer) Start(errchan chan error)
Start start runtime server
func (*RuntimeServer) UpdThirdPartyEndpoint ¶
func (r *RuntimeServer) UpdThirdPartyEndpoint(ctx context.Context, re *pb.UpdThirdPartyEndpointsReq) (*pb.Empty, error)
UpdThirdPartyEndpoint creates a update event.
type SortableResourceNames ¶
type SortableResourceNames []corev1.ResourceName
SortableResourceNames -
func (SortableResourceNames) Len ¶
func (list SortableResourceNames) Len() int
func (SortableResourceNames) Less ¶
func (list SortableResourceNames) Less(i, j int) bool
func (SortableResourceNames) Swap ¶
func (list SortableResourceNames) Swap(i, j int)