Documentation
¶
Index ¶
- func IsColorSupported() bool
- func IsStderrColorSupported() bool
- func ShouldUseColors(forceColors bool, noColors bool) bool
- type CSVFormatter
- type JSONFormatter
- type TableFormatter
- func (f *TableFormatter) FormatAccountInfo(info *inwx.AccountInfo) string
- func (f *TableFormatter) FormatBackupEntries(entries []*inwx.BackupEntry) string
- func (f *TableFormatter) FormatDNSRecords(records []inwx.DNSRecord) string
- func (f *TableFormatter) FormatDomains(domains []inwx.Domain) string
- func (f *TableFormatter) SetColors(enabled bool)
- type YAMLFormatter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsColorSupported ¶
func IsColorSupported() bool
func IsStderrColorSupported ¶
func IsStderrColorSupported() bool
func ShouldUseColors ¶
Types ¶
type CSVFormatter ¶
type CSVFormatter struct{}
func NewCSVFormatter ¶
func NewCSVFormatter() *CSVFormatter
func (*CSVFormatter) FormatAccountInfo ¶
func (f *CSVFormatter) FormatAccountInfo(info *inwx.AccountInfo) string
func (*CSVFormatter) FormatBackupEntries ¶
func (f *CSVFormatter) FormatBackupEntries(entries []*inwx.BackupEntry) string
func (*CSVFormatter) FormatDNSRecords ¶
func (f *CSVFormatter) FormatDNSRecords(records []inwx.DNSRecord) string
func (*CSVFormatter) FormatDomains ¶
func (f *CSVFormatter) FormatDomains(domains []inwx.Domain) string
type JSONFormatter ¶
type JSONFormatter struct{}
func NewJSONFormatter ¶
func NewJSONFormatter() *JSONFormatter
func (*JSONFormatter) FormatAccountInfo ¶
func (f *JSONFormatter) FormatAccountInfo(info *inwx.AccountInfo) string
func (*JSONFormatter) FormatBackupEntries ¶
func (f *JSONFormatter) FormatBackupEntries(entries []*inwx.BackupEntry) string
func (*JSONFormatter) FormatDNSRecords ¶
func (f *JSONFormatter) FormatDNSRecords(records []inwx.DNSRecord) string
func (*JSONFormatter) FormatDomains ¶
func (f *JSONFormatter) FormatDomains(domains []inwx.Domain) string
type TableFormatter ¶
type TableFormatter struct {
// contains filtered or unexported fields
}
func NewTableFormatter ¶
func NewTableFormatter() *TableFormatter
func (*TableFormatter) FormatAccountInfo ¶
func (f *TableFormatter) FormatAccountInfo(info *inwx.AccountInfo) string
func (*TableFormatter) FormatBackupEntries ¶
func (f *TableFormatter) FormatBackupEntries(entries []*inwx.BackupEntry) string
func (*TableFormatter) FormatDNSRecords ¶
func (f *TableFormatter) FormatDNSRecords(records []inwx.DNSRecord) string
func (*TableFormatter) FormatDomains ¶
func (f *TableFormatter) FormatDomains(domains []inwx.Domain) string
func (*TableFormatter) SetColors ¶
func (f *TableFormatter) SetColors(enabled bool)
type YAMLFormatter ¶
type YAMLFormatter struct{}
func NewYAMLFormatter ¶
func NewYAMLFormatter() *YAMLFormatter
func (*YAMLFormatter) FormatAccountInfo ¶
func (f *YAMLFormatter) FormatAccountInfo(info *inwx.AccountInfo) string
func (*YAMLFormatter) FormatBackupEntries ¶
func (f *YAMLFormatter) FormatBackupEntries(entries []*inwx.BackupEntry) string
func (*YAMLFormatter) FormatDNSRecords ¶
func (f *YAMLFormatter) FormatDNSRecords(records []inwx.DNSRecord) string
func (*YAMLFormatter) FormatDomains ¶
func (f *YAMLFormatter) FormatDomains(domains []inwx.Domain) string
Click to show internal directories.
Click to hide internal directories.