Documentation
¶
Index ¶
- func FormUseCaseToFormVars(stackConfig models.ServiceCatalogConfigs, useCaseName string) (*models.FormVariables, error)
- func GenerateCanonical(name string) string
- func GetPipelineName(project, env string) string
- func ReplaceCycloidVars(ctx CycloidContext, text []byte) []byte
- func ReplaceCycloidVarsString(ctx CycloidContext, text string) string
- func RequiredFlag(withFlag func(cmd *cobra.Command) string, cmd *cobra.Command)
- func RequiredPersistentFlag(withFlag func(cmd *cobra.Command) string, cmd *cobra.Command)
- func UpdateMapField(field string, value string, m map[string]map[string]map[string]any) error
- func WithFlagCan(cmd *cobra.Command) string
- func WithFlagCred(cmd *cobra.Command) string
- func WithFlagEnv(cmd *cobra.Command) string
- func WithFlagID(cmd *cobra.Command) string
- func WithFlagProject(cmd *cobra.Command) string
- func WithPersistentFlagCan(cmd *cobra.Command) string
- type APIClient
- type APIConfig
- type APIOptions
- type CycloidContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormUseCaseToFormVars ¶
func FormUseCaseToFormVars(stackConfig models.ServiceCatalogConfigs, useCaseName string) (*models.FormVariables, error)
func GenerateCanonical ¶
GenerateCanonical will generate a canonical from the name passed in input
func GetPipelineName ¶
func ReplaceCycloidVars ¶
func ReplaceCycloidVars(ctx CycloidContext, text []byte) []byte
func ReplaceCycloidVarsString ¶
func ReplaceCycloidVarsString(ctx CycloidContext, text string) string
func RequiredPersistentFlag ¶
func UpdateMapField ¶
Update map 'm' with field 'field' to 'value' the field must be in dot notation e.g. field='one.nested.key' value='myValue' If the map is nil, it will be created
func WithFlagCan ¶
func WithFlagCred ¶
func WithFlagEnv ¶
func WithFlagID ¶
func WithFlagProject ¶
func WithPersistentFlagCan ¶
Types ¶
type APIClient ¶
func NewAPI ¶
func NewAPI(opts ...APIOptions) *APIClient
func (*APIClient) Credentials ¶
func (a *APIClient) Credentials(org *string) runtime.ClientAuthInfoWriter
type APIOptions ¶
type APIOptions func(acfg *APIConfig)
func WithInsecure ¶
func WithInsecure(i bool) APIOptions
func WithToken ¶
func WithToken(t string) APIOptions
func WithURL ¶
func WithURL(u string) APIOptions
type CycloidContext ¶
Click to show internal directories.
Click to hide internal directories.