Documentation ¶
Index ¶
- func NewServer(namespace string, kubeclientset kubernetes.Interface, ...) application.ApplicationServiceServer
- type Server
- func (s *Server) Create(ctx context.Context, q *application.ApplicationCreateRequest) (*appv1.Application, error)
- func (s *Server) Delete(ctx context.Context, q *application.ApplicationDeleteRequest) (*application.ApplicationResponse, error)
- func (s *Server) DeleteResource(ctx context.Context, q *application.ApplicationResourceDeleteRequest) (*application.ApplicationResponse, error)
- func (s *Server) Get(ctx context.Context, q *application.ApplicationQuery) (*appv1.Application, error)
- func (s *Server) GetManifests(ctx context.Context, q *application.ApplicationManifestQuery) (*repository.ManifestResponse, error)
- func (s *Server) GetResource(ctx context.Context, q *application.ApplicationResourceRequest) (*application.ApplicationResourceResponse, error)
- func (s *Server) List(ctx context.Context, q *application.ApplicationQuery) (*appv1.ApplicationList, error)
- func (s *Server) ListResourceActions(ctx context.Context, q *application.ApplicationResourceRequest) (*application.ResourceActionsListResponse, error)
- func (s *Server) ListResourceEvents(ctx context.Context, q *application.ApplicationResourceEventsQuery) (*v1.EventList, error)
- func (s *Server) ManagedResources(ctx context.Context, q *application.ResourcesQuery) (*application.ManagedResourcesResponse, error)
- func (s *Server) Patch(ctx context.Context, q *application.ApplicationPatchRequest) (*appv1.Application, error)
- func (s *Server) PatchResource(ctx context.Context, q *application.ApplicationResourcePatchRequest) (*application.ApplicationResourceResponse, error)
- func (s *Server) PodLogs(q *application.ApplicationPodLogsQuery, ...) error
- func (s *Server) ResourceTree(ctx context.Context, q *application.ResourcesQuery) (*appv1.ApplicationTree, error)
- func (s *Server) Rollback(ctx context.Context, rollbackReq *application.ApplicationRollbackRequest) (*appv1.Application, error)
- func (s *Server) RunResourceAction(ctx context.Context, q *application.ResourceActionRunRequest) (*application.ApplicationResponse, error)
- func (s *Server) Sync(ctx context.Context, syncReq *application.ApplicationSyncRequest) (*appv1.Application, error)
- func (s *Server) TerminateOperation(ctx context.Context, termOpReq *application.OperationTerminateRequest) (*application.OperationTerminateResponse, error)
- func (s *Server) Update(ctx context.Context, q *application.ApplicationUpdateRequest) (*appv1.Application, error)
- func (s *Server) UpdateSpec(ctx context.Context, q *application.ApplicationUpdateSpecRequest) (*appv1.ApplicationSpec, error)
- func (s *Server) Watch(q *application.ApplicationQuery, ws application.ApplicationService_WatchServer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewServer ¶
func NewServer( namespace string, kubeclientset kubernetes.Interface, appclientset appclientset.Interface, repoClientset reposerver.Clientset, cache *cache.Cache, kubectl kube.Kubectl, db db.ArgoDB, enf *rbac.Enforcer, projectLock *util.KeyLock, settingsMgr *settings.SettingsManager, ) application.ApplicationServiceServer
NewServer returns a new instance of the Application service
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server provides a Application service
func (*Server) Create ¶
func (s *Server) Create(ctx context.Context, q *application.ApplicationCreateRequest) (*appv1.Application, error)
Create creates an application
func (*Server) Delete ¶
func (s *Server) Delete(ctx context.Context, q *application.ApplicationDeleteRequest) (*application.ApplicationResponse, error)
Delete removes an application and all associated resources
func (*Server) DeleteResource ¶ added in v0.8.0
func (s *Server) DeleteResource(ctx context.Context, q *application.ApplicationResourceDeleteRequest) (*application.ApplicationResponse, error)
DeleteResource deletes a specificed resource
func (*Server) Get ¶
func (s *Server) Get(ctx context.Context, q *application.ApplicationQuery) (*appv1.Application, error)
Get returns an application by name
func (*Server) GetManifests ¶ added in v0.4.1
func (s *Server) GetManifests(ctx context.Context, q *application.ApplicationManifestQuery) (*repository.ManifestResponse, error)
GetManifests returns application manifests
func (*Server) GetResource ¶ added in v0.11.0
func (s *Server) GetResource(ctx context.Context, q *application.ApplicationResourceRequest) (*application.ApplicationResourceResponse, error)
func (*Server) List ¶
func (s *Server) List(ctx context.Context, q *application.ApplicationQuery) (*appv1.ApplicationList, error)
List returns list of applications
func (*Server) ListResourceActions ¶ added in v1.0.0
func (s *Server) ListResourceActions(ctx context.Context, q *application.ApplicationResourceRequest) (*application.ResourceActionsListResponse, error)
func (*Server) ListResourceEvents ¶ added in v0.4.4
func (s *Server) ListResourceEvents(ctx context.Context, q *application.ApplicationResourceEventsQuery) (*v1.EventList, error)
ListResourceEvents returns a list of event resources
func (*Server) ManagedResources ¶ added in v0.11.0
func (s *Server) ManagedResources(ctx context.Context, q *application.ResourcesQuery) (*application.ManagedResourcesResponse, error)
func (*Server) Patch ¶ added in v0.12.0
func (s *Server) Patch(ctx context.Context, q *application.ApplicationPatchRequest) (*appv1.Application, error)
Patch patches an application
func (*Server) PatchResource ¶ added in v0.12.0
func (s *Server) PatchResource(ctx context.Context, q *application.ApplicationResourcePatchRequest) (*application.ApplicationResourceResponse, error)
PatchResource patches a resource
func (*Server) PodLogs ¶ added in v0.3.0
func (s *Server) PodLogs(q *application.ApplicationPodLogsQuery, ws application.ApplicationService_PodLogsServer) error
func (*Server) ResourceTree ¶ added in v0.11.0
func (s *Server) ResourceTree(ctx context.Context, q *application.ResourcesQuery) (*appv1.ApplicationTree, error)
func (*Server) Rollback ¶ added in v0.3.1
func (s *Server) Rollback(ctx context.Context, rollbackReq *application.ApplicationRollbackRequest) (*appv1.Application, error)
func (*Server) RunResourceAction ¶ added in v1.0.0
func (s *Server) RunResourceAction(ctx context.Context, q *application.ResourceActionRunRequest) (*application.ApplicationResponse, error)
func (*Server) Sync ¶
func (s *Server) Sync(ctx context.Context, syncReq *application.ApplicationSyncRequest) (*appv1.Application, error)
Sync syncs an application to its target state
func (*Server) TerminateOperation ¶ added in v0.6.0
func (s *Server) TerminateOperation(ctx context.Context, termOpReq *application.OperationTerminateRequest) (*application.OperationTerminateResponse, error)
func (*Server) Update ¶
func (s *Server) Update(ctx context.Context, q *application.ApplicationUpdateRequest) (*appv1.Application, error)
Update updates an application
func (*Server) UpdateSpec ¶ added in v0.3.3
func (s *Server) UpdateSpec(ctx context.Context, q *application.ApplicationUpdateSpecRequest) (*appv1.ApplicationSpec, error)
UpdateSpec updates an application spec and filters out any invalid parameter overrides
func (*Server) Watch ¶
func (s *Server) Watch(q *application.ApplicationQuery, ws application.ApplicationService_WatchServer) error
Click to show internal directories.
Click to hide internal directories.