Documentation ¶
Index ¶
- Variables
- func FindManifestNameWithFilesystem(cwd string, fs afero.Fs) string
- func GetComposePath(wd string) (string, error)
- func GetComposePathWithFilesystem(wd string, fs afero.Fs) (string, error)
- func GetContextResourcePath(wd string) (string, error)
- func GetHelmChartPath(cwd string) (string, error)
- func GetHelmChartPathWithFilesystem(cwd string, fs afero.Fs) (string, error)
- func GetK8sManifestPath(cwd string) (string, error)
- func GetK8sManifestPathWithFilesystem(cwd string, fs afero.Fs) (string, error)
- func GetOktetoManifestPath(wd string) (string, error)
- func GetOktetoManifestPathWithFilesystem(wd string, fs afero.Fs) (string, error)
- func GetOktetoPipelinePath(wd string) (string, error)
- func GetOktetoPipelinePathWithFilesystem(wd string, fs afero.Fs) (string, error)
Constants ¶
This section is empty.
Variables ¶
var ( // ErrComposeFileNotFound is raised when discovery package could not found any compose file ErrComposeFileNotFound = oktetoErrors.UserError{ E: errors.New("could not detect any compose file"), Hint: "If you have a compose file, use the flag '--file' to point to your compose file", } // ErrOktetoManifestNotFound is raised when discovery package could not found any okteto manifest file ErrOktetoManifestNotFound = oktetoErrors.UserError{ E: errors.New("could not detect any okteto manifest"), Hint: "If you have an okteto manifest file, use the flag '--file' to point to your okteto manifest file", } // ErrOktetoPipelineManifestNotFound is raised when discovery package could not found any okteto pipeline manifest ErrOktetoPipelineManifestNotFound = errors.New("could not detect any okteto pipeline manifest") // ErrHelmChartNotFound is raised when discovery package could not found any helm chart ErrHelmChartNotFound = errors.New("could not detect any helm chart") // ErrK8sManifestNotFound is raised when discovery package could not found any k8s manifest ErrK8sManifestNotFound = errors.New("could not detect any k8s manifest") )
Functions ¶
func GetComposePath ¶
GetComposePath returns a compose file if exists, error otherwise
func GetComposePathWithFilesystem ¶
GetComposePathWithFilesystem returns a compose file if exists, error otherwise
func GetContextResourcePath ¶
GetContextResourcePath returns the file that will load the context resource. Here we only read files which have context information - no k8s or helm files
func GetHelmChartPath ¶
GetHelmChartPath returns a helm chart directory if exists, error otherwise
func GetHelmChartPathWithFilesystem ¶
GetHelmChartPathWithFilesystem returns a helm chart directory if exists, error otherwise
func GetK8sManifestPath ¶
GetK8sManifestPath returns a k8s manifest file if exists, error otherwise
func GetK8sManifestPathWithFilesystem ¶
GetK8sManifestPathWithFilesystem returns a k8s manifest file if exists, error otherwise
func GetOktetoManifestPath ¶
GetOktetoManifestPath returns an okteto manifest file if exists, error otherwise
func GetOktetoManifestPathWithFilesystem ¶
GetOktetoManifestPathWithFilesystem returns an okteto manifest file if exists, error otherwise
func GetOktetoPipelinePath ¶
GetOktetoPipelinePath returns an okteto pipeline file if exists, error otherwise
Types ¶
This section is empty.