Documentation ¶
Index ¶
- func BoolToPointer(b bool) *bool
- func CheckYamlFile(filename string) (content []byte, err error)
- func FileExists(filename string) (bool, error)
- func GetAbsPath(filename string) (string, error)
- func GetEnumStringSliceValue(c *cli.Context, name string) []string
- func IntFromIndex(content []int, idx int, defaultValue int) int
- func IntToPointer(i int) *int
- func ReadFile(filename string) ([]byte, error)
- func ShowResults(input interface{}, format string)
- func StringFromIndex(content []string, idx int, defaultValue string) string
- func StringSliceToMap(slice []string) (map[string]string, error)
- func StringSliceToMapInterface(slice []string) (map[string]interface{}, error)
- func StringSliceToMapNil(slice []string) (*map[string]string, error)
- func StringToPointer(s string) *string
- func ValidateEqualSlicesLength(slices ...interface{}) error
- func WaitTaskAndShowResult(c *cli.Context, client *gcorecloud.ServiceClient, results *tasks.TaskResults, ...) error
- func WriteToFile(filename string, content []byte) error
- type EnumStringSliceValue
- type EnumValue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoolToPointer ¶
func CheckYamlFile ¶
func FileExists ¶
func GetAbsPath ¶
func GetEnumStringSliceValue ¶
func IntToPointer ¶
func ShowResults ¶
func ShowResults(input interface{}, format string)
func StringToPointer ¶
func ValidateEqualSlicesLength ¶
func ValidateEqualSlicesLength(slices ...interface{}) error
func WaitTaskAndShowResult ¶
func WaitTaskAndShowResult( c *cli.Context, client *gcorecloud.ServiceClient, results *tasks.TaskResults, stopOnTaskError bool, infoRetriever tasks.RetrieveTaskResult, ) error
func WriteToFile ¶
Types ¶
type EnumStringSliceValue ¶
type EnumStringSliceValue struct { Enum []string Default string // contains filtered or unexported fields }
func (EnumStringSliceValue) Get ¶
func (e EnumStringSliceValue) Get() interface{}
Get returns the slice of strings set by this flag
func (EnumStringSliceValue) Serialize ¶
func (e EnumStringSliceValue) Serialize() string
Serialize allows EnumStringSliceValue to fulfill Serializer
func (*EnumStringSliceValue) Set ¶
func (e *EnumStringSliceValue) Set(value string) error
func (EnumStringSliceValue) String ¶
func (e EnumStringSliceValue) String() string
func (EnumStringSliceValue) Value ¶
func (e EnumStringSliceValue) Value() []string
Value returns the slice of strings set by this flag
Click to show internal directories.
Click to hide internal directories.