Documentation ¶
Index ¶
- type ServiceClient
- type ServiceClientImpl
- func (c ServiceClientImpl) Delete(ctxt context.Context, query *application.ApplicationDeleteRequest) (*application.ApplicationResponse, error)
- func (c ServiceClientImpl) Get(ctx context.Context, query *application.ApplicationQuery) (*v1alpha1.Application, error)
- func (c ServiceClientImpl) GetResource(ctxt context.Context, query *application.ApplicationResourceRequest) (*application.ApplicationResourceResponse, error)
- func (c ServiceClientImpl) Patch(ctxt context.Context, query *application.ApplicationPatchRequest) (*v1alpha1.Application, error)
- func (c ServiceClientImpl) ResourceTree(ctxt context.Context, query *application.ResourcesQuery) (*argoApplication.ResourceTreeResponse, error)
- func (c ServiceClientImpl) Sync(ctxt context.Context, query *application.ApplicationSyncRequest) (*v1alpha1.Application, error)
- func (c ServiceClientImpl) TerminateOperation(ctxt context.Context, query *application.OperationTerminateRequest) (*application.OperationTerminateResponse, error)
- func (c ServiceClientImpl) Update(ctxt context.Context, query *application.ApplicationUpdateRequest) (*v1alpha1.Application, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServiceClient ¶
type ServiceClient interface { // ResourceTree returns the status for all Apps deployed via ArgoCd ResourceTree(ctx context.Context, query *application.ResourcesQuery) (*argoApplication.ResourceTreeResponse, error) // Patch an ArgoCd application Patch(ctx context.Context, query *application.ApplicationPatchRequest) (*v1alpha1.Application, error) // GetResource returns single application resource GetResource(ctxt context.Context, query *application.ApplicationResourceRequest) (*application.ApplicationResourceResponse, error) // Get returns an application by name Get(ctx context.Context, query *application.ApplicationQuery) (*v1alpha1.Application, error) // Update updates an application Update(ctx context.Context, query *application.ApplicationUpdateRequest) (*v1alpha1.Application, error) // Sync syncs an application to its target state Sync(ctx context.Context, query *application.ApplicationSyncRequest) (*v1alpha1.Application, error) // Delete deletes an application Delete(ctx context.Context, query *application.ApplicationDeleteRequest) (*application.ApplicationResponse, error) TerminateOperation(ctx context.Context, query *application.OperationTerminateRequest) (*application.OperationTerminateResponse, error) }
type ServiceClientImpl ¶
type ServiceClientImpl struct {
// contains filtered or unexported fields
}
func NewApplicationClientImpl ¶
func NewApplicationClientImpl( logger *zap.SugaredLogger, argoCDConnectionManager connection.ArgoCDConnectionManager) *ServiceClientImpl
func (ServiceClientImpl) Delete ¶
func (c ServiceClientImpl) Delete(ctxt context.Context, query *application.ApplicationDeleteRequest) (*application.ApplicationResponse, error)
func (ServiceClientImpl) Get ¶
func (c ServiceClientImpl) Get(ctx context.Context, query *application.ApplicationQuery) (*v1alpha1.Application, error)
func (ServiceClientImpl) GetResource ¶
func (c ServiceClientImpl) GetResource(ctxt context.Context, query *application.ApplicationResourceRequest) (*application.ApplicationResourceResponse, error)
func (ServiceClientImpl) Patch ¶
func (c ServiceClientImpl) Patch(ctxt context.Context, query *application.ApplicationPatchRequest) (*v1alpha1.Application, error)
func (ServiceClientImpl) ResourceTree ¶
func (c ServiceClientImpl) ResourceTree(ctxt context.Context, query *application.ResourcesQuery) (*argoApplication.ResourceTreeResponse, error)
func (ServiceClientImpl) Sync ¶
func (c ServiceClientImpl) Sync(ctxt context.Context, query *application.ApplicationSyncRequest) (*v1alpha1.Application, error)
func (ServiceClientImpl) TerminateOperation ¶
func (c ServiceClientImpl) TerminateOperation(ctxt context.Context, query *application.OperationTerminateRequest) (*application.OperationTerminateResponse, error)
func (ServiceClientImpl) Update ¶
func (c ServiceClientImpl) Update(ctxt context.Context, query *application.ApplicationUpdateRequest) (*v1alpha1.Application, error)
Click to show internal directories.
Click to hide internal directories.