Documentation ¶
Index ¶
- func FormatHost(host string) string
- func PrintSessionInfo(w io.Writer, client *c8y.Client, cfg *config.Config, session CumulocitySession)
- type CumulocitySession
- func (s CumulocitySession) GetHost() string
- func (s CumulocitySession) GetPassword() string
- func (s CumulocitySession) GetSessionPassphrase() string
- func (s *CumulocitySession) SetHost(host string)
- func (s *CumulocitySession) SetPassword(password string)
- func (s *CumulocitySession) SetToken(token string)
- type CumulocitySessions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatHost ¶
func PrintSessionInfo ¶
func PrintSessionInfo(w io.Writer, client *c8y.Client, cfg *config.Config, session CumulocitySession)
PrintSessionInfo print out the session information to writer (i.e. console or file)
Types ¶
type CumulocitySession ¶
type CumulocitySession struct { Schema string `json:"$schema,omitempty"` // ID string `json:"id"` Host string `json:"host"` Tenant string `json:"tenant"` Username string `json:"username"` Password string `json:"password"` Token string `json:"token"` Description string `json:"description"` UseTenantPrefix bool `json:"useTenantPrefix"` Settings *config.CommandSettings `json:"settings,omitempty"` MicroserviceAliases map[string]string `json:"microserviceAliases,omitempty"` Index int `json:"-"` Path string `json:"-"` Extension string `json:"-"` Name string `json:"-"` Logger *logger.Logger `json:"-"` Config *config.Config `json:"-"` }
CumulocitySession contains all settings required to communicate with a Cumulocity service
func (CumulocitySession) GetHost ¶
func (s CumulocitySession) GetHost() string
func (CumulocitySession) GetPassword ¶
func (s CumulocitySession) GetPassword() string
func (CumulocitySession) GetSessionPassphrase ¶
func (s CumulocitySession) GetSessionPassphrase() string
func (*CumulocitySession) SetHost ¶
func (s *CumulocitySession) SetHost(host string)
func (*CumulocitySession) SetPassword ¶
func (s *CumulocitySession) SetPassword(password string)
func (*CumulocitySession) SetToken ¶
func (s *CumulocitySession) SetToken(token string)
type CumulocitySessions ¶
type CumulocitySessions struct {
Sessions []CumulocitySession `json:"sessions"`
}
Click to show internal directories.
Click to hide internal directories.