Documentation
¶
Index ¶
- Variables
- func GenerateManifests(appPath, repoRoot, revision string, q *apiclient.ManifestRequest, isLocal bool, ...) (*apiclient.ManifestResponse, error)
- func GetAppSourceType(source *v1alpha1.ApplicationSource, path, appName string) (v1alpha1.ApplicationSourceType, error)
- func NewRepositoryLock() *repositoryLock
- type RepoServerInitConstants
- type Service
- func (s *Service) GenerateManifest(ctx context.Context, q *apiclient.ManifestRequest) (*apiclient.ManifestResponse, error)
- func (s *Service) GetAppDetails(ctx context.Context, q *apiclient.RepoServerAppDetailsQuery) (*apiclient.RepoAppDetailsResponse, error)
- func (s *Service) GetHelmCharts(ctx context.Context, q *apiclient.HelmChartsRequest) (*apiclient.HelmChartsResponse, error)
- func (s *Service) GetRevisionMetadata(ctx context.Context, q *apiclient.RepoServerRevisionMetadataRequest) (*v1alpha1.RevisionMetadata, error)
- func (s *Service) ListApps(ctx context.Context, q *apiclient.ListAppsRequest) (*apiclient.AppList, error)
- func (s *Service) ListRefs(ctx context.Context, q *apiclient.ListRefsRequest) (*apiclient.Refs, error)
- func (s *Service) TestRepository(ctx context.Context, q *apiclient.TestRepositoryRequest) (*apiclient.TestRepositoryResponse, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrExceededMaxCombinedManifestFileSize = errors.New("exceeded max combined manifest file size")
Functions ¶
func GenerateManifests ¶
func GenerateManifests(appPath, repoRoot, revision string, q *apiclient.ManifestRequest, isLocal bool, maxCombinedManifestQuantity resource.Quantity) (*apiclient.ManifestResponse, error)
GenerateManifests generates manifests from a path
func GetAppSourceType ¶
func GetAppSourceType(source *v1alpha1.ApplicationSource, path, appName string) (v1alpha1.ApplicationSourceType, error)
GetAppSourceType returns explicit application source type or examines a directory and determines its application source type
func NewRepositoryLock ¶
func NewRepositoryLock() *repositoryLock
Types ¶
type RepoServerInitConstants ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service implements ManifestService interface
func NewService ¶
func NewService(metricsServer *metrics.MetricsServer, cache *reposervercache.Cache, initConstants RepoServerInitConstants) *Service
NewService returns a new instance of the Manifest service
func (*Service) GenerateManifest ¶
func (s *Service) GenerateManifest(ctx context.Context, q *apiclient.ManifestRequest) (*apiclient.ManifestResponse, error)
func (*Service) GetAppDetails ¶
func (s *Service) GetAppDetails(ctx context.Context, q *apiclient.RepoServerAppDetailsQuery) (*apiclient.RepoAppDetailsResponse, error)
func (*Service) GetHelmCharts ¶
func (s *Service) GetHelmCharts(ctx context.Context, q *apiclient.HelmChartsRequest) (*apiclient.HelmChartsResponse, error)
func (*Service) GetRevisionMetadata ¶
func (s *Service) GetRevisionMetadata(ctx context.Context, q *apiclient.RepoServerRevisionMetadataRequest) (*v1alpha1.RevisionMetadata, error)
func (*Service) ListApps ¶
func (s *Service) ListApps(ctx context.Context, q *apiclient.ListAppsRequest) (*apiclient.AppList, error)
ListApps lists the contents of a GitHub repo
func (*Service) ListRefs ¶
func (s *Service) ListRefs(ctx context.Context, q *apiclient.ListRefsRequest) (*apiclient.Refs, error)
List a subset of the refs (currently, branches and tags) of a git repo
func (*Service) TestRepository ¶ added in v2.1.0
func (s *Service) TestRepository(ctx context.Context, q *apiclient.TestRepositoryRequest) (*apiclient.TestRepositoryResponse, error)
Click to show internal directories.
Click to hide internal directories.