Documentation ¶
Index ¶
- Variables
- func MustGetUserid(ctx context.Context) string
- func TokenSecretName(ctx context.Context, gitProvider string) string
- type AppEventService
- type AppPodsService
- func (s *AppPodsService) OnAdd(obj interface{})
- func (s *AppPodsService) OnDelete(obj interface{})
- func (s *AppPodsService) OnUpdate(oldObj, newObj interface{})
- func (s *AppPodsService) Pods(ctx context.Context, ns, appName string) ([]*model.Pod, error)
- func (s *AppPodsService) SubPods(ctx context.Context, ns string, app string) chan []*model.Pod
- type AppService
- func (s *AppService) CfgCreate(ctx context.Context, in *app.AppCfg) (*app.Configuration, error)
- func (s *AppService) CfgDelete(ctx context.Context, in *app.AppCfg) (*emptypb.Empty, error)
- func (s *AppService) CfgUpdate(ctx context.Context, in *app.AppCfg) (*app.Configuration, error)
- func (s *AppService) Create(ctx context.Context, in *app.Application) (*app.Application, error)
- func (s *AppService) Delete(ctx context.Context, in *kiae.IdRequest) (*emptypb.Empty, error)
- func (s *AppService) DoAction(ctx context.Context, in *app.ActionPayload) (*app.Application, error)
- func (s *AppService) EnvCreate(ctx context.Context, in *app.AppEnv) (*app.Environment, error)
- func (s *AppService) EnvDelete(ctx context.Context, in *app.AppEnv) (*emptypb.Empty, error)
- func (s *AppService) EnvUpdate(ctx context.Context, in *app.AppEnv) (*app.Environment, error)
- func (s *AppService) List(ctx context.Context, req *app.ListRequest) (*app.ListResponse, error)
- func (p *AppService) Read(ctx context.Context, in *kiae.IdRequest) (*app.Application, error)
- func (s *AppService) Update(ctx context.Context, in *app.UpdateRequest) (*app.Application, error)
- type AppStatusService
- type BuilderSvc
- func (s *BuilderSvc) Create(ctx context.Context, in *builder.Builder) (*builder.Builder, error)
- func (s *BuilderSvc) Delete(ctx context.Context, in *kiae.IdRequest) (*emptypb.Empty, error)
- func (s *BuilderSvc) List(ctx context.Context, in *builder.BuilderListRequest) (*builder.BuilderListResponse, error)
- func (s *BuilderSvc) SuggestedStacks(ctx context.Context, empty *emptypb.Empty) (*builder.SuggestedStackListResponse, error)
- func (s *BuilderSvc) Update(ctx context.Context, in *builder.Builder) (*builder.Builder, error)
- type ClusterService
- func (s *ClusterService) Create(ctx context.Context, in *cluster.Cluster) (*cluster.Cluster, error)
- func (s *ClusterService) Delete(ctx context.Context, in *kiae.IdRequest) (*emptypb.Empty, error)
- func (s *ClusterService) List(ctx context.Context, in *cluster.ListRequest) (*cluster.ListResponse, error)
- func (s *ClusterService) Update(ctx context.Context, in *cluster.UpdateRequest) (*cluster.Cluster, error)
- type CtxKey
- type DeploymentService
- func (s *DeploymentService) Create(ctx context.Context, in *deployment.Deployment) (*deployment.Deployment, error)
- func (s *DeploymentService) Delete(ctx context.Context, in *kiae.IdRequest) (*emptypb.Empty, error)
- func (s *DeploymentService) List(ctx context.Context, in *deployment.DeploymentListRequest) (*deployment.DeploymentListResponse, error)
- func (s *DeploymentService) Update(ctx context.Context, in *deployment.Deployment) (*deployment.Deployment, error)
- type EValue
- type EgressService
- func (s *EgressService) Create(ctx context.Context, in *egress.Egress) (*egress.Egress, error)
- func (s *EgressService) Delete(ctx context.Context, in *kiae.IdRequest) (*emptypb.Empty, error)
- func (s *EgressService) List(ctx context.Context, in *egress.ListRequest) (*egress.ListResponse, error)
- func (s *EgressService) Update(ctx context.Context, in *egress.Egress) (*egress.Egress, error)
- type EntryService
- func (s *EntryService) Create(ctx context.Context, in *entry.Entry) (*entry.Entry, error)
- func (s *EntryService) Delete(ctx context.Context, in *kiae.IdRequest) (*emptypb.Empty, error)
- func (s *EntryService) List(ctx context.Context, in *entry.ListRequest) (*entry.ListResponse, error)
- func (s *EntryService) Update(ctx context.Context, in *entry.UpdateRequest) (*entry.Entry, error)
- type Events
- type Gateway
- func (s *Gateway) Create(ctx context.Context, in *gateway.Gateway) (*gateway.Gateway, error)
- func (s *Gateway) Delete(ctx context.Context, in *kiae.IdRequest) (*emptypb.Empty, error)
- func (s *Gateway) List(ctx context.Context, in *gateway.ListRequest) (*gateway.ListResponse, error)
- func (s *Gateway) Update(ctx context.Context, in *gateway.UpdateRequest) (*gateway.Gateway, error)
- type ImageRegistrySvc
- func (s *ImageRegistrySvc) Create(ctx context.Context, in *image.Registry) (*image.Registry, error)
- func (s *ImageRegistrySvc) Delete(ctx context.Context, in *kiae.IdRequest) (*emptypb.Empty, error)
- func (s *ImageRegistrySvc) List(ctx context.Context, in *image.RegistryListRequest) (*image.RegistryListResponse, error)
- func (s *ImageRegistrySvc) Update(ctx context.Context, in *image.Registry) (*image.Registry, error)
- type ImageWatcher
- type MiddlewareService
- func (s *MiddlewareService) ClaimCreate(ctx context.Context, in *middleware.Claim) (*middleware.Claim, error)
- func (s *MiddlewareService) ClaimDelete(ctx context.Context, in *kiae.IdRequest) (*emptypb.Empty, error)
- func (s *MiddlewareService) ClaimUpdate(ctx context.Context, in *middleware.Claim) (*middleware.Claim, error)
- func (s *MiddlewareService) Claims(ctx context.Context, in *middleware.ClaimsRequest) (*middleware.ClaimsResponse, error)
- func (s *MiddlewareService) Create(ctx context.Context, in *middleware.Instance) (*middleware.Instance, error)
- func (s *MiddlewareService) Delete(ctx context.Context, in *kiae.IdRequest) (*emptypb.Empty, error)
- func (s *MiddlewareService) List(ctx context.Context, in *middleware.ListRequest) (*middleware.ListResponse, error)
- func (s *MiddlewareService) Update(ctx context.Context, in *middleware.Instance) (*middleware.Instance, error)
- type Oauth2
- type ProjectImageSvc
- func (s *ProjectImageSvc) Create(ctx context.Context, in *image.Image) (*image.Image, error)
- func (s *ProjectImageSvc) Delete(ctx context.Context, in *kiae.IdRequest) (*emptypb.Empty, error)
- func (s *ProjectImageSvc) List(ctx context.Context, in *image.ImageListRequest) (*image.ImageListResponse, error)
- func (s *ProjectImageSvc) ListNotDoneStatus(ctx context.Context) ([]*image.Image, error)
- func (s *ProjectImageSvc) Update(ctx context.Context, in *image.Image) (*image.Image, error)
- func (s *ProjectImageSvc) UpdateStatus(ctx context.Context, name string, status image.Image_Status) (*image.Image, error)
- type ProjectService
- func (p *ProjectService) Create(ctx context.Context, in *project.Project) (*project.Project, error)
- func (p *ProjectService) Delete(ctx context.Context, in *kiae.IdRequest) (*emptypb.Empty, error)
- func (p *ProjectService) List(ctx context.Context, in *project.ListRequest) (*project.ListResponse, error)
- func (p *ProjectService) Read(ctx context.Context, in *kiae.IdRequest) (*project.Project, error)
- func (p *ProjectService) Update(ctx context.Context, in *project.Project) (*project.Project, error)
- type ProviderService
- func (s *ProviderService) Config(ctx context.Context, providerName string) (*oauth2.Config, error)
- func (s *ProviderService) Create(ctx context.Context, in *provider.Provider) (*provider.Provider, error)
- func (s *ProviderService) Delete(ctx context.Context, in *kiae.IdRequest) (*emptypb.Empty, error)
- func (s *ProviderService) GetOauth2Config(ctx context.Context, providerName string) (*oauth2.Config, error)
- func (s *ProviderService) List(ctx context.Context, in *provider.ListRequest) (*provider.ListResponse, error)
- func (s *ProviderService) ListBranches(ctx context.Context, in *provider.ListBranchesRequest) (*provider.ListBranchesResponse, error)
- func (s *ProviderService) ListRepos(ctx context.Context, in *provider.ListReposRequest) (*provider.ListReposResponse, error)
- func (s *ProviderService) ListTags(ctx context.Context, in *provider.ListTagsRequest) (*provider.ListTagsResponse, error)
- func (s *ProviderService) Prepare(context.Context, *emptypb.Empty) (*provider.PreparesResponse, error)
- func (s *ProviderService) TokenF(ctx context.Context, providerName string, token *oauth2.Token) error
- func (s *ProviderService) Update(ctx context.Context, in *provider.UpdateRequest) (*provider.Provider, error)
- type RouteService
- func (s *RouteService) Create(ctx context.Context, in *route.Route) (*route.Route, error)
- func (s *RouteService) Delete(ctx context.Context, in *kiae.IdRequest) (*emptypb.Empty, error)
- func (s *RouteService) List(ctx context.Context, in *route.ListRequest) (*route.ListResponse, error)
- func (s *RouteService) Update(ctx context.Context, in *route.UpdateRequest) (*route.Route, error)
- type ServiceSets
- type Session
- type Settings
- type UserSvc
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet( NewAppService, NewAppPodsService, NewAppStatusService, NewAppEventService, NewEgressService, NewEntryService, NewImageWatcher, NewMiddlewareService, NewProjectService, NewProjectImageSvc, NewDeploymentService, NewProviderService, NewProviderOauth2Svc, NewRouteService, NewClusterService, NewBuilderSvc, NewImageRegistrySvc, NewUserSvc, NewSession, NewGateway, wire.Struct(new(ServiceSets), "*"), )
Functions ¶
func MustGetUserid ¶
Types ¶
type AppEventService ¶
type AppEventService struct {
// contains filtered or unexported fields
}
func NewAppEventService ¶
func NewAppEventService(loki *loki.Client) *AppEventService
type AppPodsService ¶
type AppPodsService struct {
// contains filtered or unexported fields
}
func NewAppPodsService ¶
func NewAppPodsService(mci *watch.MultiClusterInformers) *AppPodsService
func (*AppPodsService) OnAdd ¶
func (s *AppPodsService) OnAdd(obj interface{})
func (*AppPodsService) OnDelete ¶
func (s *AppPodsService) OnDelete(obj interface{})
func (*AppPodsService) OnUpdate ¶
func (s *AppPodsService) OnUpdate(oldObj, newObj interface{})
type AppService ¶
type AppService struct { app.UnimplementedAppServiceServer // contains filtered or unexported fields }
func NewAppService ¶
func NewAppService(daoProj *dao.ProjectDao, daoApp *dao.AppDao, daoEntry *dao.EntryDao, daoRoute *dao.RouteDao, daoMwInstance *dao.MiddlewareInstance, daoMwClaim *dao.MiddlewareClaim, daoEgress *dao.EgressDao, k8sClient *kubernetes.Clientset, oamClient *versioned.Clientset) *AppService
func (*AppService) CfgCreate ¶
func (s *AppService) CfgCreate(ctx context.Context, in *app.AppCfg) (*app.Configuration, error)
func (*AppService) CfgUpdate ¶
func (s *AppService) CfgUpdate(ctx context.Context, in *app.AppCfg) (*app.Configuration, error)
func (*AppService) Create ¶
func (s *AppService) Create(ctx context.Context, in *app.Application) (*app.Application, error)
func (*AppService) DoAction ¶
func (s *AppService) DoAction(ctx context.Context, in *app.ActionPayload) (*app.Application, error)
func (*AppService) EnvCreate ¶
func (s *AppService) EnvCreate(ctx context.Context, in *app.AppEnv) (*app.Environment, error)
func (*AppService) EnvUpdate ¶
func (s *AppService) EnvUpdate(ctx context.Context, in *app.AppEnv) (*app.Environment, error)
func (*AppService) List ¶
func (s *AppService) List(ctx context.Context, req *app.ListRequest) (*app.ListResponse, error)
func (*AppService) Read ¶
func (p *AppService) Read(ctx context.Context, in *kiae.IdRequest) (*app.Application, error)
func (*AppService) Update ¶
func (s *AppService) Update(ctx context.Context, in *app.UpdateRequest) (*app.Application, error)
type AppStatusService ¶
type AppStatusService struct {
// contains filtered or unexported fields
}
func NewAppStatusService ¶
func NewAppStatusService(rClient client.Client, velaClients *vela.Clientset, appSvc *AppService) *AppStatusService
func (*AppStatusService) OnAdd ¶
func (s *AppStatusService) OnAdd(obj interface{})
func (*AppStatusService) OnDelete ¶
func (s *AppStatusService) OnDelete(obj interface{})
func (*AppStatusService) OnUpdate ¶
func (s *AppStatusService) OnUpdate(oldObj, newObj interface{})
type BuilderSvc ¶
type BuilderSvc struct {
// contains filtered or unexported fields
}
func NewBuilderSvc ¶
func NewBuilderSvc(daoProjImg *dao.BuilderDao, imageRegistrySvc *ImageRegistrySvc, kClients *klient.LocalClients) *BuilderSvc
func (*BuilderSvc) List ¶
func (s *BuilderSvc) List(ctx context.Context, in *builder.BuilderListRequest) (*builder.BuilderListResponse, error)
func (*BuilderSvc) SuggestedStacks ¶
func (s *BuilderSvc) SuggestedStacks(ctx context.Context, empty *emptypb.Empty) (*builder.SuggestedStackListResponse, error)
type ClusterService ¶
type ClusterService struct {
// contains filtered or unexported fields
}
func NewClusterService ¶
func NewClusterService(daoCluster *dao.ClusterDao, wci *watch.MultiClusterInformers) *ClusterService
func (*ClusterService) List ¶
func (s *ClusterService) List(ctx context.Context, in *cluster.ListRequest) (*cluster.ListResponse, error)
func (*ClusterService) Update ¶
func (s *ClusterService) Update(ctx context.Context, in *cluster.UpdateRequest) (*cluster.Cluster, error)
type DeploymentService ¶
type DeploymentService struct {
// contains filtered or unexported fields
}
func NewDeploymentService ¶
func NewDeploymentService(deploymentDao *dao.DeploymentDao, imageSvc *ProjectImageSvc, appSvc *AppService) *DeploymentService
func (*DeploymentService) Create ¶
func (s *DeploymentService) Create(ctx context.Context, in *deployment.Deployment) (*deployment.Deployment, error)
func (*DeploymentService) List ¶
func (s *DeploymentService) List(ctx context.Context, in *deployment.DeploymentListRequest) (*deployment.DeploymentListResponse, error)
func (*DeploymentService) Update ¶
func (s *DeploymentService) Update(ctx context.Context, in *deployment.Deployment) (*deployment.Deployment, error)
type EValue ¶
type EValue struct { Body string `json:"body"` Severity string `json:"severity"` Attributes struct { K8SEventAction string `json:"k8s.event.action"` K8SEventCount int `json:"k8s.event.count"` K8SEventName string `json:"k8s.event.name"` K8SEventReason string `json:"k8s.event.reason"` K8SEventStartTime string `json:"k8s.event.start_time"` K8SEventUid string `json:"k8s.event.uid"` K8SNamespaceName string `json:"k8s.namespace.name"` } `json:"attributes"` Resources struct { K8SNodeName string `json:"k8s.node.name"` K8SObjectApiVersion string `json:"k8s.object.api_version"` K8SObjectFieldpath string `json:"k8s.object.fieldpath"` K8SObjectKind string `json:"k8s.object.kind"` K8SObjectName string `json:"k8s.object.name"` K8SObjectResourceVersion string `json:"k8s.object.resource_version"` K8SObjectUid string `json:"k8s.object.uid"` } `json:"resources"` }
type EgressService ¶
type EgressService struct { egress.UnimplementedEgressServiceServer // contains filtered or unexported fields }
func NewEgressService ¶
func NewEgressService(appSvc *AppService, daoEgress *dao.EgressDao) *EgressService
func (*EgressService) List ¶
func (s *EgressService) List(ctx context.Context, in *egress.ListRequest) (*egress.ListResponse, error)
type EntryService ¶
type EntryService struct { entry.UnimplementedEntryServiceServer // contains filtered or unexported fields }
func NewEntryService ¶
func NewEntryService(appSvc *AppService, daoEntry *dao.EntryDao) *EntryService
func (*EntryService) List ¶
func (s *EntryService) List(ctx context.Context, in *entry.ListRequest) (*entry.ListResponse, error)
func (*EntryService) Update ¶
func (s *EntryService) Update(ctx context.Context, in *entry.UpdateRequest) (*entry.Entry, error)
type Gateway ¶ added in v0.0.3
type Gateway struct {
// contains filtered or unexported fields
}
func NewGateway ¶ added in v0.0.3
func NewGateway(daoGateway *dao.Gateway, kClients *klient.LocalClients) *Gateway
func (*Gateway) List ¶ added in v0.0.3
func (s *Gateway) List(ctx context.Context, in *gateway.ListRequest) (*gateway.ListResponse, error)
type ImageRegistrySvc ¶
type ImageRegistrySvc struct {
// contains filtered or unexported fields
}
func NewImageRegistrySvc ¶
func NewImageRegistrySvc(imageRegistryDao *dao.ImageRegistryDao, kClients *klient.LocalClients) *ImageRegistrySvc
func (*ImageRegistrySvc) List ¶
func (s *ImageRegistrySvc) List(ctx context.Context, in *image.RegistryListRequest) (*image.RegistryListResponse, error)
type ImageWatcher ¶
type ImageWatcher struct {
// contains filtered or unexported fields
}
func NewImageWatcher ¶
func NewImageWatcher(imgSvc *ProjectImageSvc, kClients *klient.LocalClients) *ImageWatcher
func (*ImageWatcher) OnAdd ¶
func (i *ImageWatcher) OnAdd(obj interface{})
func (*ImageWatcher) OnDelete ¶
func (i *ImageWatcher) OnDelete(obj interface{})
func (*ImageWatcher) OnUpdate ¶
func (i *ImageWatcher) OnUpdate(oldObj, newObj interface{})
type MiddlewareService ¶
type MiddlewareService struct { middleware.UnimplementedMiddlewareServiceServer // contains filtered or unexported fields }
func NewMiddlewareService ¶
func NewMiddlewareService(rc client.Client, kc *kubernetes.Clientset, daoMwInstance *dao.MiddlewareInstance, daoMwClaim *dao.MiddlewareClaim, appSvc *AppService) *MiddlewareService
func (*MiddlewareService) ClaimCreate ¶
func (s *MiddlewareService) ClaimCreate(ctx context.Context, in *middleware.Claim) (*middleware.Claim, error)
func (*MiddlewareService) ClaimDelete ¶
func (*MiddlewareService) ClaimUpdate ¶
func (s *MiddlewareService) ClaimUpdate(ctx context.Context, in *middleware.Claim) (*middleware.Claim, error)
func (*MiddlewareService) Claims ¶
func (s *MiddlewareService) Claims(ctx context.Context, in *middleware.ClaimsRequest) (*middleware.ClaimsResponse, error)
func (*MiddlewareService) Create ¶
func (s *MiddlewareService) Create(ctx context.Context, in *middleware.Instance) (*middleware.Instance, error)
func (*MiddlewareService) List ¶
func (s *MiddlewareService) List(ctx context.Context, in *middleware.ListRequest) (*middleware.ListResponse, error)
func (*MiddlewareService) Update ¶
func (s *MiddlewareService) Update(ctx context.Context, in *middleware.Instance) (*middleware.Instance, error)
type Oauth2 ¶
func NewProviderOauth2Svc ¶
func NewProviderOauth2Svc(pvdSvc *ProviderService) *Oauth2
func (*Oauth2) SetupEndpoints ¶
type ProjectImageSvc ¶
type ProjectImageSvc struct {
// contains filtered or unexported fields
}
func NewProjectImageSvc ¶
func NewProjectImageSvc(daoProj *dao.ProjectDao, daoProjImg *dao.ProjectImageDao, daoBuilder *dao.BuilderDao, svcRegistry *ImageRegistrySvc, svcProvider *ProviderService, kClients *klient.LocalClients) *ProjectImageSvc
func (*ProjectImageSvc) List ¶
func (s *ProjectImageSvc) List(ctx context.Context, in *image.ImageListRequest) (*image.ImageListResponse, error)
func (*ProjectImageSvc) ListNotDoneStatus ¶
func (*ProjectImageSvc) UpdateStatus ¶
func (s *ProjectImageSvc) UpdateStatus(ctx context.Context, name string, status image.Image_Status) (*image.Image, error)
type ProjectService ¶
type ProjectService struct {
// contains filtered or unexported fields
}
func NewProjectService ¶
func NewProjectService(daoProj *dao.ProjectDao, builderSvc *BuilderSvc) *ProjectService
func (*ProjectService) List ¶
func (p *ProjectService) List(ctx context.Context, in *project.ListRequest) (*project.ListResponse, error)
type ProviderService ¶
type ProviderService struct {
// contains filtered or unexported fields
}
func NewProviderService ¶
func NewProviderService(daoProvider *dao.ProviderDao, kClients *klient.LocalClients) *ProviderService
func (*ProviderService) GetOauth2Config ¶
func (*ProviderService) List ¶
func (s *ProviderService) List(ctx context.Context, in *provider.ListRequest) (*provider.ListResponse, error)
func (*ProviderService) ListBranches ¶
func (s *ProviderService) ListBranches(ctx context.Context, in *provider.ListBranchesRequest) (*provider.ListBranchesResponse, error)
func (*ProviderService) ListRepos ¶
func (s *ProviderService) ListRepos(ctx context.Context, in *provider.ListReposRequest) (*provider.ListReposResponse, error)
func (*ProviderService) ListTags ¶
func (s *ProviderService) ListTags(ctx context.Context, in *provider.ListTagsRequest) (*provider.ListTagsResponse, error)
func (*ProviderService) Prepare ¶
func (s *ProviderService) Prepare(context.Context, *emptypb.Empty) (*provider.PreparesResponse, error)
func (*ProviderService) Update ¶
func (s *ProviderService) Update(ctx context.Context, in *provider.UpdateRequest) (*provider.Provider, error)
type RouteService ¶
type RouteService struct { route.UnimplementedRouteServiceServer // contains filtered or unexported fields }
func NewRouteService ¶
func NewRouteService(appSvc *AppService, daoRoute *dao.RouteDao) *RouteService
func (*RouteService) List ¶
func (s *RouteService) List(ctx context.Context, in *route.ListRequest) (*route.ListResponse, error)
func (*RouteService) Update ¶
func (s *RouteService) Update(ctx context.Context, in *route.UpdateRequest) (*route.Route, error)
type ServiceSets ¶
type ServiceSets struct { *AppService *AppPodsService *AppStatusService *AppEventService *ClusterService *EgressService *EntryService *ImageWatcher *MiddlewareService *Oauth2 *ProjectService *ProjectImageSvc *ProviderService *RouteService *DeploymentService *BuilderSvc *ImageRegistrySvc *UserSvc *Session *Gateway }
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
func (*Session) Middleware ¶
func (s *Session) Middleware() mux.MiddlewareFunc
func (*Session) SetupEndpoints ¶
type Settings ¶
type Settings struct { settings.UnimplementedSettingsServiceServer // contains filtered or unexported fields }
func NewSettings ¶
func NewSettings(cs *kubernetes.Clientset) *Settings
func (*Settings) Update ¶
func (s *Settings) Update(ctx context.Context, request *settings.UpdateRequest) (*settings.UpdateReply, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.