Documentation ¶
Index ¶
- Constants
- type ErrUnauthorized
- type Manifests
- type PodMetadata
- type ResourceTreeResponse
- type Result
- type ServiceClient
- type ServiceClientImpl
- func (c ServiceClientImpl) Create(ctxt context.Context, query *application.ApplicationCreateRequest) (*v1alpha1.Application, error)
- func (c ServiceClientImpl) Delete(ctxt context.Context, query *application.ApplicationDeleteRequest) (*application.ApplicationResponse, error)
- func (c ServiceClientImpl) DeleteResource(ctxt context.Context, query *application.ApplicationResourceDeleteRequest) (*application.ApplicationResponse, error)
- func (c ServiceClientImpl) Get(ctxt context.Context, query *application.ApplicationQuery) (*v1alpha1.Application, error)
- func (c ServiceClientImpl) GetManifests(ctxt context.Context, query *application.ApplicationManifestQuery) (*apiclient.ManifestResponse, error)
- func (c ServiceClientImpl) GetResource(ctxt context.Context, query *application.ApplicationResourceRequest) (*application.ApplicationResourceResponse, error)
- func (c ServiceClientImpl) List(ctxt context.Context, query *application.ApplicationQuery) (*v1alpha1.ApplicationList, error)
- func (c ServiceClientImpl) ListResourceEvents(ctxt context.Context, query *application.ApplicationResourceEventsQuery) (*v1.EventList, error)
- func (c ServiceClientImpl) ManagedResources(ctxt context.Context, query *application.ResourcesQuery) (*application.ManagedResourcesResponse, error)
- func (c ServiceClientImpl) Patch(ctxt context.Context, query *application.ApplicationPatchRequest) (*v1alpha1.Application, error)
- func (c ServiceClientImpl) PatchResource(ctxt context.Context, query *application.ApplicationResourcePatchRequest) (*application.ApplicationResourceResponse, error)
- func (c ServiceClientImpl) PodLogs(ctx context.Context, query *application.ApplicationPodLogsQuery) (application.ApplicationService_PodLogsClient, *grpc.ClientConn, error)
- func (c ServiceClientImpl) ResourceTree(ctxt context.Context, query *application.ResourcesQuery) (*ResourceTreeResponse, error)
- func (c ServiceClientImpl) Rollback(ctxt context.Context, query *application.ApplicationRollbackRequest) (*v1alpha1.Application, 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)
- func (c ServiceClientImpl) Watch(ctx context.Context, query *application.ApplicationQuery) (application.ApplicationService_WatchClient, *grpc.ClientConn, error)
Constants ¶
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrUnauthorized ¶
type ErrUnauthorized struct {
// contains filtered or unexported fields
}
func NewErrUnauthorized ¶
func NewErrUnauthorized(message string) *ErrUnauthorized
func (*ErrUnauthorized) Error ¶
func (e *ErrUnauthorized) Error() string
type PodMetadata ¶
type PodMetadata struct { Name string `json:"name"` UID string `json:"uid"` Containers []*string `json:"containers"` InitContainers []*string `json:"initContainers"` IsNew bool `json:"isNew"` // EphemeralContainers are set for Pod kind manifest response only // will always contain running ephemeral containers // +optional EphemeralContainers []*k8sObjectUtils.EphemeralContainerData `json:"ephemeralContainers"` }
type ResourceTreeResponse ¶
type ResourceTreeResponse struct { *v1alpha1.ApplicationTree NewGenerationReplicaSets []string `json:"newGenerationReplicaSets"` Status string `json:"status"` RevisionHash string `json:"revisionHash"` PodMetadata []*PodMetadata `json:"podMetadata"` Conditions []v1alpha1.ApplicationCondition `json:"conditions"` }
type Result ¶
type Result struct { Response *application.ApplicationResourceResponse Error error Request *application.ApplicationResourceRequest }
type ServiceClient ¶
type ServiceClient interface { List(ctxt context.Context, query *application.ApplicationQuery) (*v1alpha1.ApplicationList, error) PodLogs(ctxt context.Context, query *application.ApplicationPodLogsQuery) (application.ApplicationService_PodLogsClient, *grpc.ClientConn, error) ListResourceEvents(ctx context.Context, query *application.ApplicationResourceEventsQuery) (*v1.EventList, error) ResourceTree(ctx context.Context, query *application.ResourcesQuery) (*ResourceTreeResponse, error) // Watch returns stream of application change events. Watch(ctx context.Context, in *application.ApplicationQuery) (application.ApplicationService_WatchClient, *grpc.ClientConn, error) ManagedResources(ctx context.Context, query *application.ResourcesQuery) (*application.ManagedResourcesResponse, error) // Rollback syncs an application to its target state Rollback(ctx context.Context, query *application.ApplicationRollbackRequest) (*v1alpha1.Application, error) // Patch patch an application Patch(ctx context.Context, query *application.ApplicationPatchRequest) (*v1alpha1.Application, error) // GetManifests returns application manifests GetManifests(ctx context.Context, query *application.ApplicationManifestQuery) (*apiclient.ManifestResponse, 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) // Create creates an application Create(ctx context.Context, query *application.ApplicationCreateRequest) (*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) // TerminateOperation terminates the currently running operation TerminateOperation(ctx context.Context, query *application.OperationTerminateRequest) (*application.OperationTerminateResponse, error) // PatchResource patch single application resource PatchResource(ctx context.Context, query *application.ApplicationResourcePatchRequest) (*application.ApplicationResourceResponse, error) // DeleteResource deletes a single application resource DeleteResource(ctx context.Context, query *application.ApplicationResourceDeleteRequest) (*application.ApplicationResponse, error) // Delete deletes an application Delete(ctx context.Context, query *application.ApplicationDeleteRequest) (*application.ApplicationResponse, error) }
type ServiceClientImpl ¶
type ServiceClientImpl struct {
// contains filtered or unexported fields
}
func NewApplicationClientImpl ¶
func NewApplicationClientImpl( logger *zap.SugaredLogger, argoCDConnectionManager connection.ArgoCDConnectionManager, ) *ServiceClientImpl
func (ServiceClientImpl) Create ¶
func (c ServiceClientImpl) Create(ctxt context.Context, query *application.ApplicationCreateRequest) (*v1alpha1.Application, error)
func (ServiceClientImpl) Delete ¶
func (c ServiceClientImpl) Delete(ctxt context.Context, query *application.ApplicationDeleteRequest) (*application.ApplicationResponse, error)
func (ServiceClientImpl) DeleteResource ¶
func (c ServiceClientImpl) DeleteResource(ctxt context.Context, query *application.ApplicationResourceDeleteRequest) (*application.ApplicationResponse, error)
func (ServiceClientImpl) Get ¶
func (c ServiceClientImpl) Get(ctxt context.Context, query *application.ApplicationQuery) (*v1alpha1.Application, error)
func (ServiceClientImpl) GetManifests ¶
func (c ServiceClientImpl) GetManifests(ctxt context.Context, query *application.ApplicationManifestQuery) (*apiclient.ManifestResponse, error)
func (ServiceClientImpl) GetResource ¶
func (c ServiceClientImpl) GetResource(ctxt context.Context, query *application.ApplicationResourceRequest) (*application.ApplicationResourceResponse, error)
func (ServiceClientImpl) List ¶
func (c ServiceClientImpl) List(ctxt context.Context, query *application.ApplicationQuery) (*v1alpha1.ApplicationList, error)
func (ServiceClientImpl) ListResourceEvents ¶
func (c ServiceClientImpl) ListResourceEvents(ctxt context.Context, query *application.ApplicationResourceEventsQuery) (*v1.EventList, error)
func (ServiceClientImpl) ManagedResources ¶
func (c ServiceClientImpl) ManagedResources(ctxt context.Context, query *application.ResourcesQuery) (*application.ManagedResourcesResponse, error)
func (ServiceClientImpl) Patch ¶
func (c ServiceClientImpl) Patch(ctxt context.Context, query *application.ApplicationPatchRequest) (*v1alpha1.Application, error)
func (ServiceClientImpl) PatchResource ¶
func (c ServiceClientImpl) PatchResource(ctxt context.Context, query *application.ApplicationResourcePatchRequest) (*application.ApplicationResourceResponse, error)
func (ServiceClientImpl) PodLogs ¶
func (c ServiceClientImpl) PodLogs(ctx context.Context, query *application.ApplicationPodLogsQuery) (application.ApplicationService_PodLogsClient, *grpc.ClientConn, error)
func (ServiceClientImpl) ResourceTree ¶
func (c ServiceClientImpl) ResourceTree(ctxt context.Context, query *application.ResourcesQuery) (*ResourceTreeResponse, error)
func (ServiceClientImpl) Rollback ¶
func (c ServiceClientImpl) Rollback(ctxt context.Context, query *application.ApplicationRollbackRequest) (*v1alpha1.Application, 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)
func (ServiceClientImpl) Watch ¶
func (c ServiceClientImpl) Watch(ctx context.Context, query *application.ApplicationQuery) (application.ApplicationService_WatchClient, *grpc.ClientConn, error)
Click to show internal directories.
Click to hide internal directories.