Documentation ¶
Index ¶
Constants ¶
View Source
const ( Unknown = iota Database Application DiagnosticsAgent )
View Source
const ( SAPSystemsApplication string = "application" SAPSystemsDatabase string = "database" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DatabaseData ¶
type DatabaseData struct { Database string `mapstructure:"database,omitempty"` Container string `mapstructure:"container,omitempty"` User string `mapstructure:"user,omitempty"` Group string `mapstructure:"group,omitempty"` UserId string `mapstructure:"userid,omitempty"` GroupId string `mapstructure:"groupid,omitempty"` Host string `mapstructure:"host,omitempty"` SqlPort string `mapstructure:"sqlport,omitempty"` Active string `mapstructure:"active,omitempty"` }
type HdbnsutilSRstate ¶
type HdbnsutilSRstate map[string]interface{}
type HostConfiguration ¶
type HostConfiguration map[string]interface{}
type SAPControl ¶
type SAPControl struct { Processes map[string]*sapcontrol.OSProcess `mapstructure:"processes,omitempty"` Instances map[string]*sapcontrol.SAPInstance `mapstructure:"instances,omitempty"` Properties map[string]*sapcontrol.InstanceProperty `mapstructure:"properties,omitempty"` // contains filtered or unexported fields }
func NewSAPControl ¶
func NewSAPControl(w sapcontrol.WebService) (*SAPControl, error)
type SAPInstance ¶
type SAPInstance struct { Name string `mapstructure:"name,omitempty"` Type int `mapstructure:"type,omitempty"` Host string `mapstructure:"host,omitempty"` SAPControl *SAPControl `mapstructure:"sapcontrol,omitempty"` // Only for Database type SystemReplication SystemReplication `mapstructure:"systemreplication,omitempty"` HostConfiguration HostConfiguration `mapstructure:"hostconfiguration,omitempty"` HdbnsutilSRstate HdbnsutilSRstate `mapstructure:"hdbnsutilsrstate,omitempty"` }
func NewSAPInstance ¶
func NewSAPInstance(w sapcontrol.WebService) (*SAPInstance, error)
type SAPProfile ¶
type SAPProfile map[string]interface{}
The value is interface{} as some of the entries in the SAP profiles files and commands are already using "/", so the result will be a map of strings/maps
type SAPSystem ¶
type SAPSystem struct { Id string `mapstructure:"id,omitempty"` SID string `mapstructure:"sid,omitempty"` Type int `mapstructure:"type,omitempty"` Profile SAPProfile `mapstructure:"profile,omitempty"` Instances map[string]*SAPInstance `mapstructure:"instances,omitempty"` // Only for Database type Databases []*DatabaseData `mapstructure:"databases,omitempty"` // Only for Application type DBAddress string `mapstructure:"db_address,omitempty"` }
A SAPSystem in this context is a SAP installation under one SID. It will have application or database type, mutually exclusive The Id parameter is not yet implemented
type SAPSystemsList ¶
type SAPSystemsList []*SAPSystem
func NewSAPSystemsList ¶
func NewSAPSystemsList() (SAPSystemsList, error)
func (SAPSystemsList) GetIDsString ¶
func (sl SAPSystemsList) GetIDsString() string
func (SAPSystemsList) GetSIDsString ¶
func (sl SAPSystemsList) GetSIDsString() string
func (SAPSystemsList) GetTypesString ¶
func (sl SAPSystemsList) GetTypesString() string
type SAPSystemsMap ¶
type SystemReplication ¶
type SystemReplication map[string]interface{}
Click to show internal directories.
Click to hide internal directories.