Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service interface {
// ConfigFile returns the configuration file path.
ConfigFile() string
// CheckConfigFile checks if the configuration file is exists.
CheckConfigFile() bool
// Create creates the configuration file.
Create(apikey, org string) (string, error)
// Read reads the configration file content.
Read() (*Config, error)
// UpdateDefaultOrganization updates default organization on the configuration.
UpdateDefaultOrganization(org string) error
// AddOrganization adds the new organization to the configuration.
AddOrganization(org string) (bool, error)
}
func New ¶
func New(cfile cfile.IConfigFile) Service
Click to show internal directories.
Click to hide internal directories.