restconnector

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2024 License: MIT Imports: 16 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 CanonicalizeExternalAttributeName

func CanonicalizeExternalAttributeName(s string) string

func ExternalAttributeNames

func ExternalAttributeNames() []string

func ExternalAttributeNamesCanonicalMap

func ExternalAttributeNamesCanonicalMap() map[string]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"`
}

func (Call) Header

func (c Call) Header() http.Header

func (Call) IsJSON

func (c Call) IsJSON() bool

type CallInfo

type CallInfo struct {
	AccountIDPath          string            `json:"accountIdPath,omitempty"`
	ResponseColsToPropsMap map[string]string `json:"responseColsToPropsMap,omitempty"`
	Call                   []Call            `json:"call,omitempty"`
}

func (CallInfo) CallBodies

func (ci CallInfo) CallBodies() []string

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"`
}

func (Connection) WriteExternalAttributeJSONFiles

func (c Connection) WriteExternalAttributeJSONFiles(dir string, templateNameAsDir, templateNameAsFilePrefix, writeHTTPParamsFile bool) error

type ConnectionFile

type ConnectionFile map[string]Connection

func ReadConnectionFile

func ReadConnectionFile(filename string) (*ConnectionFile, error)

func (ConnectionFile) Names

func (cm ConnectionFile) Names() []string

func (ConnectionFile) WriteExternalAttributeJSONFiles

func (cm ConnectionFile) WriteExternalAttributeJSONFiles(dir string, templateNameAsDir, templateNameAsFilePrefix, writeHTTPParamsFile bool) error

type ConnectionSet

type ConnectionSet struct {
	Map ConnectionFile
}

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"`
}

func (ExternalAttr) CanonicalAttrributeName

func (ea ExternalAttr) CanonicalAttrributeName() string

func (ExternalAttr) HasEncryptedAttributeValue

func (ea ExternalAttr) HasEncryptedAttributeValue() bool

func (ExternalAttr) HasEncryptedAttributeValueJSONMap

func (ea ExternalAttr) HasEncryptedAttributeValueJSONMap() bool

func (ExternalAttr) ParseEncryptedAttributeValueJSONMap

func (ea ExternalAttr) ParseEncryptedAttributeValueJSONMap() (ExternalAttributeValue, error)

type ExternalAttrNamesOpts

type ExternalAttrNamesOpts struct {
	ToUpper      bool
	Dedupe       bool
	Sort         bool
	RequireValue bool
}

type ExternalAttributeCall

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

type ExternalAttributeCallResponses

type ExternalAttributeCallResponses struct {
	StatusCodes []int `json:"statusCode"`
}

type ExternalAttributeValue

type ExternalAttributeValue struct {
	AccountIDPath          string                  `json:"accountIdPath"`
	ResponseColsToPropsMap map[string]any          `json:"responseColsToPropsMap"`
	Call                   []ExternalAttributeCall `json:"call"`
}

type ExternalAttrs

type ExternalAttrs []ExternalAttr

func (ExternalAttrs) CallBodies

func (eas ExternalAttrs) CallBodies() []string

func (ExternalAttrs) Inflate

func (eas ExternalAttrs) Inflate() ExternalAttrs

func (ExternalAttrs) Markdown

func (eas ExternalAttrs) Markdown() []string

func (ExternalAttrs) Names

func (e ExternalAttrs) Names(opts ExternalAttrNamesOpts) []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

Jump to

Keyboard shortcuts

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