Documentation ¶
Index ¶
- type ServiceClient
- type ServiceClientImpl
- func (r ServiceClientImpl) Create(ctx context.Context, query *repository2.RepoCreateRequest) (*v1alpha1.Repository, error)
- func (r ServiceClientImpl) Delete(ctx context.Context, query *repository2.RepoQuery) (*repository2.RepoResponse, error)
- func (r ServiceClientImpl) GetAppDetails(ctx context.Context, query *repository2.RepoAppDetailsQuery) (*apiclient.RepoAppDetailsResponse, error)
- func (r ServiceClientImpl) List(ctx context.Context, query *repository2.RepoQuery) (*v1alpha1.RepositoryList, error)
- func (r ServiceClientImpl) ListApps(ctx context.Context, query *repository2.RepoAppsQuery) (*repository2.RepoAppsResponse, error)
- func (r ServiceClientImpl) Update(ctx context.Context, query *repository2.RepoUpdateRequest) (*v1alpha1.Repository, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServiceClient ¶
type ServiceClient interface { // List returns list of repos List(ctx context.Context, query *repository2.RepoQuery) (*v1alpha1.RepositoryList, error) // ListApps returns list of apps in the repo ListApps(ctx context.Context, query *repository2.RepoAppsQuery) (*repository2.RepoAppsResponse, error) // GetAppDetails returns application details by given path GetAppDetails(ctx context.Context, query *repository2.RepoAppDetailsQuery) (*apiclient.RepoAppDetailsResponse, error) // Create creates a repo Create(ctx context.Context, query *repository2.RepoCreateRequest) (*v1alpha1.Repository, error) // Update updates a repo Update(ctx context.Context, query *repository2.RepoUpdateRequest) (*v1alpha1.Repository, error) // Delete deletes a repo Delete(ctx context.Context, query *repository2.RepoQuery) (*repository2.RepoResponse, error) }
type ServiceClientImpl ¶
type ServiceClientImpl struct {
// contains filtered or unexported fields
}
func NewServiceClientImpl ¶
func NewServiceClientImpl( settings *settings.ArgoCDSettings, logger *zap.SugaredLogger, ) *ServiceClientImpl
func (ServiceClientImpl) Create ¶
func (r ServiceClientImpl) Create(ctx context.Context, query *repository2.RepoCreateRequest) (*v1alpha1.Repository, error)
func (ServiceClientImpl) Delete ¶
func (r ServiceClientImpl) Delete(ctx context.Context, query *repository2.RepoQuery) (*repository2.RepoResponse, error)
func (ServiceClientImpl) GetAppDetails ¶
func (r ServiceClientImpl) GetAppDetails(ctx context.Context, query *repository2.RepoAppDetailsQuery) (*apiclient.RepoAppDetailsResponse, error)
func (ServiceClientImpl) List ¶
func (r ServiceClientImpl) List(ctx context.Context, query *repository2.RepoQuery) (*v1alpha1.RepositoryList, error)
func (ServiceClientImpl) ListApps ¶
func (r ServiceClientImpl) ListApps(ctx context.Context, query *repository2.RepoAppsQuery) (*repository2.RepoAppsResponse, error)
func (ServiceClientImpl) Update ¶
func (r ServiceClientImpl) Update(ctx context.Context, query *repository2.RepoUpdateRequest) (*v1alpha1.Repository, error)
Click to show internal directories.
Click to hide internal directories.