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 StringSliceToMapInterface(slice []string) (map[string]interface{}, error)
- func StringToPointer(s string) *string
- func StructToString(item interface{}) string
- func UpdateStructFromString(item interface{}, value string) error
- 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
- type Item
- type Result
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 StructToString ¶ added in v0.4.41
func StructToString(item interface{}) string
StructToString Make string from struct for example or documentation
func UpdateStructFromString ¶ added in v0.4.41
UpdateStructFromString Update struct from string by pattern key=value;
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.