sapsystem

package
v0.0.0-...-7eda018 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 30, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

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 CustomCommand

type CustomCommand func(name string, arg ...string) *exec.Cmd

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

func NewSAPSystem

func NewSAPSystem(fs afero.Fs, sysPath string) (*SAPSystem, error)

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 SAPSystemsMap map[string]*SAPSystem

type SystemReplication

type SystemReplication map[string]interface{}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL