Documentation
¶
Overview ¶
Index ¶
- func EditMachineInformation(token, serverName, machineName string, m MachineInfoJSON) error
- func GetMachinesNames(token, serverName string) (*machinesJSON, error)
- func GetToken(username, password, serverName string) (string, error)
- func ImportSSLCert(token, serverName, machineName, alias, certPassword, certFileName string) error
- func QueryLogs(token, serverName, levelType string, startTime, endTime int64) (*logResponseJSON, error)
- func ServiceDetails(token, serverName, folder, serviceFullName string) (*detailsJSON, error)
- func ServiceExists(token, serverName, folder, serviceName, serviceType string) (bool, error)
- func ServiceManifest(token, serverName, folder, serviceFullName string) (*manifestJSON, error)
- func ServiceState(token, serverName, folder, serviceFullName string) (string, error)
- func StartService(token, serverName, folder, serviceFullName string) error
- func StopService(token, serverName, folder, serviceFullName string) error
- type FoldersJSON
- type MachineInfoJSON
- type ServicesJSON
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EditMachineInformation ¶
func EditMachineInformation(token, serverName, machineName string, m MachineInfoJSON) error
editMachineInformation returns machineInfoJSON struct for given machineName
func GetMachinesNames ¶
GetMachineNames gets a list of all machines federated in serverName.
returns machinesJSON struct containing information. getMachinesNames(token, serverName string) (*machinesJSON, error)
func GetToken ¶
Queries an ESRI server to obtain an authentication token, returns this token as a string.
func ImportSSLCert ¶
ImportSSLCert imports pfx certificate to ArcGIS server. machineName is the ArcGIS server machine name where the certificate will be uploaded. certFileName must be a valid PathName to the certificate file with its password in certPassword. alias is the unique name used by the server to identify the certifcate.
func QueryLogs ¶
func QueryLogs(token, serverName, levelType string, startTime, endTime int64) (*logResponseJSON, error)
query ArcGIS server logs, returns records with a log levelType at or more severe than given (SEVERE, WARNING, INFO, FINE, VERBOSE, DEBUG). returns logs between startTime and endTime (values in milliseconds)
func ServiceDetails ¶
Returns DetailsJSON struct with service info
func ServiceExists ¶
Returns true if service exists, false otherwise, for root services folder should be empty. serverName can be in the form: https://www.myserver.com/server/ or https://ags.myserver.com:6443/arcgis/
func ServiceManifest ¶
Returns DetailsJSON struct with service info
func ServiceState ¶
Returns string with service real time state. Configured state can be queried via serviceDetails serviceFullName is the service name followed by its type. example: "SampleWorldCities.MapServer", serverName can be in the form: https://www.myserver.com/server/ or https://ags.myserver.com:6443/arcgis/
func StartService ¶
Starts service, returns error or nil if success. For root folder string should be empty.
func StopService ¶
Stops service, returns error or nil if success. For root folder string should be empty.
Types ¶
type FoldersJSON ¶
type FoldersJSON struct { FolderName string `json:"folderName"` Description string `json:"description"` WebEncrypted bool `json:"webEncrypted"` IsDefault bool `json:"isDefault"` }
struct containing service information
func RootFolders ¶
func RootFolders(token, serverName string) ([]FoldersJSON, error)
Returns struct list of folders by listing items at the root folder level.
type MachineInfoJSON ¶
type MachineInfoJSON struct { MachineNameDomain string `json:"machineName"` AdminURL string `json:"adminURL"` Platform string `json:"platform"` ServerStartTime int64 `json:"ServerStartTime"` WebServerMaxHeapSize int32 `json:"webServerMaxHeapSize"` WebServerSSLEnabled bool `json:"webServerSSLEnabled"` WebServerCertificateAlias string `json:"webServerCertificateAlias"` SocMaxHeapSize int32 `json:"socMaxHeapSize"` AppServerMaxHeapSize int32 `json:"appServerMaxHeapSize"` ConfiguredState string `json:"configuredState"` // <"STARTED"|"STOPPED"> Synchronize bool `json:"synchronize"` UnderMaintenance bool `json:"underMaintenance"` }
func GetMachineInformation ¶
func GetMachineInformation(token, serverName, machineName string) (*MachineInfoJSON, error)
GetMachineInformation returns machineInfoJSON struct for given machineName
type ServicesJSON ¶
type ServicesJSON struct { FolderName string `json:"folderName"` ServiceName string `json:"serviceName"` Type string `json:"type"` Description string `json:"description"` }
struct containing service information
func FolderServices ¶
func FolderServices(token, serverName, folder string) ([]ServicesJSON, error)
Returns struct list of services in given folder. For root folder string should be empty.