Documentation ¶
Index ¶
- Constants
- func GenerateManifests(root, path string, q *apiclient.ManifestRequest) (*apiclient.ManifestResponse, error)
- func GetAppSourceType(source *v1alpha1.ApplicationSource, appDirPath string) (v1alpha1.ApplicationSourceType, error)
- type Service
- func (s *Service) GenerateManifest(c context.Context, q *apiclient.ManifestRequest) (*apiclient.ManifestResponse, error)
- func (s *Service) GetAppDetails(ctx context.Context, q *apiclient.RepoServerAppDetailsQuery) (*apiclient.RepoAppDetailsResponse, error)
- func (s *Service) GetFile(ctx context.Context, q *apiclient.GetFileRequest) (*apiclient.GetFileResponse, error)
- func (s *Service) GetRevisionMetadata(ctx context.Context, q *apiclient.RepoServerRevisionMetadataRequest) (*v1alpha1.RevisionMetadata, error)
- func (s *Service) ListDir(ctx context.Context, q *apiclient.ListDirRequest) (*apiclient.FileList, error)
Constants ¶
View Source
const ( PluginEnvAppName = "ARGOCD_APP_NAME" PluginEnvAppNamespace = "ARGOCD_APP_NAMESPACE" )
Variables ¶
This section is empty.
Functions ¶
func GenerateManifests ¶ added in v0.12.0
func GenerateManifests(root, path string, q *apiclient.ManifestRequest) (*apiclient.ManifestResponse, error)
GenerateManifests generates manifests from a path
func GetAppSourceType ¶ added in v0.12.0
func GetAppSourceType(source *v1alpha1.ApplicationSource, appDirPath string) (v1alpha1.ApplicationSourceType, error)
GetAppSourceType returns explicit application source type or examines a directory and determines its application source type
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service implements ManifestService interface
func NewService ¶
NewService returns a new instance of the Manifest service
func (*Service) GenerateManifest ¶
func (s *Service) GenerateManifest(c context.Context, q *apiclient.ManifestRequest) (*apiclient.ManifestResponse, error)
func (*Service) GetAppDetails ¶ added in v0.12.0
func (s *Service) GetAppDetails(ctx context.Context, q *apiclient.RepoServerAppDetailsQuery) (*apiclient.RepoAppDetailsResponse, error)
func (*Service) GetFile ¶ added in v0.4.0
func (s *Service) GetFile(ctx context.Context, q *apiclient.GetFileRequest) (*apiclient.GetFileResponse, error)
func (*Service) GetRevisionMetadata ¶ added in v1.2.0
func (s *Service) GetRevisionMetadata(ctx context.Context, q *apiclient.RepoServerRevisionMetadataRequest) (*v1alpha1.RevisionMetadata, error)
Click to show internal directories.
Click to hide internal directories.