Documentation
¶
Index ¶
- func AddImage(baseConfig *latest.Config, ...) error
- func AddPort(baseConfig *latest.Config, namespace, labelSelector string, args []string) error
- func AddSyncPath(baseConfig *latest.Config, ...) error
- func GetDockerfileComponentDeployment(config *latest.Config, generatedConfig *generated.Config, ...) (*latest.ImageConfig, *latest.DeploymentConfig, error)
- func GetHelmDeployment(name, chartName, chartRepo, chartVersion string) (*latest.DeploymentConfig, error)
- func GetImageComponentDeployment(name, imageName string, log log.Logger) (*latest.ImageConfig, *latest.DeploymentConfig, error)
- func GetImageConfigFromDockerfile(config *latest.Config, imageName, dockerfile, context string, log log.Logger) (*latest.ImageConfig, error)
- func GetImageConfigFromImageName(imageName, dockerfile, context string) *latest.ImageConfig
- func GetKubectlDeployment(name, manifests string) (*latest.DeploymentConfig, error)
- func GetNameOfFirstDeployment(config *latest.Config) string
- func GetPredefinedComponentDeployment(name, component string, log log.Logger) (*latest.DeploymentConfig, error)
- func RemoveDeployment(baseConfig *latest.Config, removeAll bool, name string) (bool, error)
- func RemoveImage(baseConfig *latest.Config, removeAll bool, names []string) error
- func RemovePort(baseConfig *latest.Config, removeAll bool, labelSelector string, args []string) error
- func RemoveSyncPath(baseConfig *latest.Config, removeAll bool, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddImage ¶
func AddImage(baseConfig *latest.Config, nameInConfig, name, tag, contextPath, dockerfilePath, buildTool string, log log.Logger) error
AddImage adds an image to the devspace
func AddSyncPath ¶
func AddSyncPath(baseConfig *latest.Config, localPath, containerPath, namespace, labelSelector, excludedPathsString string) error
AddSyncPath adds a new sync path to the config
func GetDockerfileComponentDeployment ¶
func GetDockerfileComponentDeployment(config *latest.Config, generatedConfig *generated.Config, name, imageName, dockerfile, context string, log log.Logger) (*latest.ImageConfig, *latest.DeploymentConfig, error)
GetDockerfileComponentDeployment returns a new deployment that deploys an image built from a local dockerfile via a component
func GetHelmDeployment ¶
func GetHelmDeployment(name, chartName, chartRepo, chartVersion string) (*latest.DeploymentConfig, error)
GetHelmDeployment returns a new helm deployment
func GetImageComponentDeployment ¶
func GetImageComponentDeployment(name, imageName string, log log.Logger) (*latest.ImageConfig, *latest.DeploymentConfig, error)
GetImageComponentDeployment returns a new deployment that deploys an image via a component
func GetImageConfigFromDockerfile ¶
func GetImageConfigFromDockerfile(config *latest.Config, imageName, dockerfile, context string, log log.Logger) (*latest.ImageConfig, error)
GetImageConfigFromDockerfile gets the image config based on the configured cloud provider or asks the user where to push to
func GetImageConfigFromImageName ¶
func GetImageConfigFromImageName(imageName, dockerfile, context string) *latest.ImageConfig
GetImageConfigFromImageName returns an image config based on the image
func GetKubectlDeployment ¶
func GetKubectlDeployment(name, manifests string) (*latest.DeploymentConfig, error)
GetKubectlDeployment retruns a new kubectl deployment
func GetNameOfFirstDeployment ¶
GetNameOfFirstDeployment retrieves the first deployment name
func GetPredefinedComponentDeployment ¶
func GetPredefinedComponentDeployment(name, component string, log log.Logger) (*latest.DeploymentConfig, error)
GetPredefinedComponentDeployment returns deployment that uses a predefined component
func RemoveDeployment ¶
RemoveDeployment removes one or all deployments from the config
func RemoveImage ¶
RemoveImage removes an image from the devspace
Types ¶
This section is empty.