Documentation
¶
Overview ¶
Package table produces a string that represents slice of structs data in a text table
Index ¶
- Constants
- func LoadKeystoneAuthOptionsFromEnv() *c.KeystoneAuthOptions
- func LoadNoAuthOptionsFromEnv() *c.NoAuthOptions
- func PrintDict(u interface{}, keys KeyList, fmts FormatterList)
- func PrintList(slice interface{}, keys KeyList, fmts FormatterList)
- func Run() error
- func TableDict(u interface{}, keys KeyList, fmts FormatterList) string
- func TableList(slice interface{}, keys KeyList, fmts FormatterList) string
- type FormatterList
- type KeyList
- type StructElemCb
Constants ¶
View Source
const ( // Opensds Auth EVNs OpensdsEndpoint = "OPENSDS_ENDPOINT" OpensdsAuthStrategy = "OPENSDS_AUTH_STRATEGY" OpensdsTenantId = "OPENSDS_TENANT_ID" // Keystone Auth ENVs OsAuthUrl = "OS_AUTH_URL" OsUsername = "OS_USERNAME" OsPassword = "OS_PASSWORD" OsTenantName = "OS_TENANT_NAME" OsProjectName = "OS_PROJECT_NAME" OsUserDomainId = "OS_USER_DOMAIN_ID" )
Variables ¶
This section is empty.
Functions ¶
func LoadKeystoneAuthOptionsFromEnv ¶ added in v0.1.4
func LoadKeystoneAuthOptionsFromEnv() *c.KeystoneAuthOptions
func LoadNoAuthOptionsFromEnv ¶ added in v0.1.4
func LoadNoAuthOptionsFromEnv() *c.NoAuthOptions
func PrintDict ¶
func PrintDict(u interface{}, keys KeyList, fmts FormatterList)
func PrintList ¶
func PrintList(slice interface{}, keys KeyList, fmts FormatterList)
Output formats slice of structs data and writes to standard output.(Using box drawing characters)
func TableDict ¶
func TableDict(u interface{}, keys KeyList, fmts FormatterList) string
Table formats slice of structs data and returns the resulting string.(Using standard ascii characters)
func TableList ¶
func TableList(slice interface{}, keys KeyList, fmts FormatterList) string
Table formats slice of structs data and returns the resulting string.(Using box drawing characters)
Types ¶
type FormatterList ¶
Click to show internal directories.
Click to hide internal directories.