gosaviyntconnectors

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: MIT Imports: 10 Imported by: 0

README

Go Saviynt Connectors

Build Status Go Report Card Docs License

gosaviyntconnectors is a module to manage Saviynt Connector Transport package files.

Contributing

Features, Issues, and Pull Requests are always welcome.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExternalAttributeNames

func ExternalAttributeNames() []string

Types

type Call

type Call struct {
	Connection       string            `json:"connection"`
	HTTPContentType  string            `json:"httpContentType"`
	HTTPHeaders      map[string]string `json:"httpHeaders"`
	HTTPMethod       string            `json:"httpMethod"`
	HTTPParams       string            `json:"httpParams"`
	Name             string            `json:"name"`
	URL              string            `json:"url"`
	SuccessResponses Responses         `json:"successResponses"`
}

type Connection

type Connection struct {
	ConnectionKey             string        `json:"_connectionKey"`
	ConnectionDescription     string        `json:"connectiondescription"`
	ConnectionName            string        `json:"connectionname"`
	Connectorms               bool          `json:"connectorms"`
	ConnectorType             *string       `json:"connectorType"`
	CredentialChangeConfig    *string       `json:"credentialChangeConfig"`
	ExternalConnectionType    string        `json:"externalconnectiontype"`
	MSConnectorVersion        *string       `json:"msconnectorversion"`
	SSLCertificate            *string       `json:"sslCertificate"`
	SSLCertificateID          *string       `json:"sslCertificateId"`
	Status                    int           `json:"status"`
	StatusForEnableDisable    int           `json:"statusForEnableDisable"`
	TemplateMandatoryData     string        `json:"templateMandatoryData"`
	TemplateName              string        `json:"templateName"`
	VaultConfig               *string       `json:"vaultConfig"`
	VaultCredentialConnection *string       `json:"vaultCredentialConnection"`
	ExternalAttrs             ExternalAttrs `json:"EXTERNAL_ATTR"`
}

type ConnectionMap

type ConnectionMap map[string]Connection

func ConnectionMapReadFile

func ConnectionMapReadFile(filename string) (*ConnectionMap, error)

func (ConnectionMap) Names

func (cm ConnectionMap) Names() []string

type ConnectionSet

type ConnectionSet struct {
	Map ConnectionMap
}

func NewConnectionSet

func NewConnectionSet() ConnectionSet

func (*ConnectionSet) ExtendedAttributes

func (set *ConnectionSet) ExtendedAttributes() *histogram.HistogramSet

func (*ConnectionSet) ExtendedAttributesWriteXLSX

func (set *ConnectionSet) ExtendedAttributesWriteXLSX(filename string) error

func (*ConnectionSet) ReadDir

func (set *ConnectionSet) ReadDir(dir string, recursive bool) error

ReadDir reads Connection JSON files.

type ExternalAttr

type ExternalAttr struct {
	AttributeName           string  `json:"attributename"`
	CredentialSaveStatus    bool    `json:"credentialSaveStatus"`
	EncryptedAttributeValue string  `json:"encryptedattributevalue"`
	Formdata                *string `json:"formdata"`
}

type ExternalAttrs

type ExternalAttrs []ExternalAttr

func (ExternalAttrs) Inflate

func (e ExternalAttrs) Inflate() ExternalAttrs

func (ExternalAttrs) Names

func (e ExternalAttrs) Names(uppercaseNames, dedupeNames, sortNames, requireValue bool) []string

type ObjectSummary

type ObjectSummary struct {
	Objects     Objects                  `json:"Objects"`
	Information ObjectSummaryInformation `json:"Information"`
}

type ObjectSummaryInformation

type ObjectSummaryInformation struct {
	GUID           string `json:"GUID"`
	ExportedBy     string `json:"Exported By"`
	ExportedOn     string `json:"Exported On"`
	System         string `json:"System"`
	TransferOwners string `json:"TransferOwners"`
	TransferUsers  string `json:"TransferUsers"`
}

type Objects

type Objects struct {
	Connection []string `json:"Connection"`
}

type Requests

type Requests struct {
	AccountIDPath          string            `json:"accountIdPath"`
	ResponseColsToPropsMap map[string]string `json:"responseColsToPropsMap"`
	Calls                  []Call            `json:"call"`
}

func (Requests) Bytes

func (r Requests) Bytes() ([]byte, error)

func (Requests) MustString

func (r Requests) MustString() string

func (Requests) String

func (r Requests) String() (string, error)

type RequestsAttribute

type RequestsAttribute struct {
	Name     string
	Requests Requests
}

func (RequestsAttribute) ExtendedAttr

func (ra RequestsAttribute) ExtendedAttr() (ExternalAttr, error)

type Responses

type Responses struct {
	StatusCodes []uint `json:"statusCode"`
}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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