Documentation
¶
Index ¶
- func AddEnvOfServiceParam(cmd *cobra.Command, id *string)
- func AddEnvParam(cmd *cobra.Command, id *string)
- func AddProjectParam(cmd *cobra.Command, id, name *string)
- func AddServiceParam(cmd *cobra.Command, id, name *string)
- func GetProjectByName(config config.Config, client api.Client, projectName string) (project *model.Project, err error)
- func GetServiceByName(config config.Config, client api.Client, serviceName string) (service *model.Service, err error)
- func PackZip() ([]byte, string, error)
- func PackZipWithoutGitIgnoreFiles() ([]byte, error)
- func ResolveEnvironmentID(client api.Client, projectID string) (string, error)
- type CobraRunE
- func DefaultIDByContext(basicInfo zcontext.BasicInfo, id *string) CobraRunE
- func DefaultIDNameByContext(basicInfo zcontext.BasicInfo, id, name *string) CobraRunE
- func NeedProjectContextWhenNonInteractive(f *cmdutil.Factory, overrideID ...*string) CobraRunE
- func RunEChain(chains ...CobraRunE) CobraRunE
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddEnvOfServiceParam ¶
func AddProjectParam ¶
func AddServiceParam ¶
func GetProjectByName ¶
func GetServiceByName ¶
func ResolveEnvironmentID ¶ added in v0.5.8
ResolveEnvironmentID resolves the environment ID from the project ID by listing environments and returning the first one. Every project has exactly one environment since environments are deprecated.
Types ¶
type CobraRunE ¶
func DefaultIDByContext ¶
func DefaultIDNameByContext ¶
func NeedProjectContextWhenNonInteractive ¶
NeedProjectContextWhenNonInteractive checks if the project context is set in the non-interactive mode. If overrideID is provided and non-empty, the check is skipped (the caller already has a project ID from a flag).
Click to show internal directories.
Click to hide internal directories.