Documentation
¶
Index ¶
- func ClearEntityPayloadList()
- func CreateServiceAccount(iamname string) (err error)
- func DeletePreferencesFile() (err error)
- func DownloadFile(url string, auth bool) (resp *http.Response, err error)
- func DownloadResource(url string, name string, resType string) error
- func DryRun() bool
- func Every(duration time.Duration, work func(time.Time) bool) chan bool
- func FolderExists(folder string) (err error)
- func GetBaseConnectorOperationsrURL() (connectorUrl string)
- func GetBaseConnectorURL() (connectorUrl string)
- func GetBaseIntegrationURL() (integrationUrl string)
- func GetComputeEngineDefaultServiceAccount(projectId string) (serviceAccount string, err error)
- func GetDefaultProject() (org string)
- func GetEntityPayloadList() [][]byte
- func GetExportToFile() string
- func GetIntegrationRegions() []string
- func GetIntegrationToken() string
- func GetLastCheck() (lastCheck string)
- func GetNoCheck() bool
- func GetPreferences() (err error)
- func GetPrintOutput() bool
- func GetProjectID() string
- func GetProxyURL() string
- func GetRegion() string
- func GetServiceAccount() string
- func GetToken() (token string)
- func HttpClient(print bool, params ...string) (respBody []byte, err error)
- func IsSkipCache() bool
- func IsSkipCheck() bool
- func IsSkipLogInfo() bool
- func NewIntegrationClient(o IntegrationClientOptions)
- func PostHttpOctet(print bool, update bool, url string, proxyName string) (respBody []byte, err error)
- func PostHttpZip(print bool, auth bool, method string, url string, headers map[string]string, ...) (err error)
- func PrettifyJson(body []byte) (prettyJson []byte, err error)
- func PrettyPrint(body []byte) error
- func ReadPreferencesFile() (err error)
- func SetAccessToken() error
- func SetBigQueryIAMPermission(project string, datasetid string, memberName string) (err error)
- func SetCloudSQLIAMPermission(project string, memberName string) (err error)
- func SetCloudStorageIAMPermission(project string, memberName string) (err error)
- func SetConnectorIAMPermission(name string, memberName string, iamRole string, memberType string) (err error)
- func SetDefaultRegion(region string) (err error)
- func SetEntityPayloadList(respBody []byte)
- func SetExportToFile(exportToFile string)
- func SetIntegrationToken(token string)
- func SetNoCheck(nocheck bool) (err error)
- func SetPrintOutput(output bool)
- func SetProjectID(projectID string) (err error)
- func SetProxy(url string) (err error)
- func SetProxyURL(proxyurl string)
- func SetPubSubIAMPermission(project string, topic string, memberName string) (err error)
- func SetRegion(region string) (err error)
- func SetSecretManagerIAMPermission(project string, secretName string, memberName string) (err error)
- func SetServiceAccount(serviceAccount string)
- func SetSkipLogInfo(l bool)
- func SetUseApigee(useapigee bool) (err error)
- func TestAndUpdateLastCheck() (updated bool, err error)
- func UseApigeeIntegration()
- func WriteArrayByteArrayToFile(exportFile string, fileAppend bool, payload [][]byte) error
- func WriteByteArrayToFile(exportFile string, fileAppend bool, payload []byte) error
- func WriteDefaultProject(project string) (err error)
- func WritePerferencesFile(payload []byte) (err error)
- func WriteToken(token string) (err error)
- type IntegrationClientOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearEntityPayloadList ¶
func ClearEntityPayloadList()
func CreateServiceAccount ¶
CreateServiceAccount
func DeletePreferencesFile ¶
func DeletePreferencesFile() (err error)
func DownloadResource ¶
DownloadResource method is used to download resources, proxy bundles, sharedflows
func FolderExists ¶
func GetBaseConnectorOperationsrURL ¶
func GetBaseConnectorOperationsrURL() (connectorUrl string)
GetBaseConnectorOperationsURL
func GetBaseIntegrationURL ¶
func GetBaseIntegrationURL() (integrationUrl string)
GetBaseIntegrationURL
func GetComputeEngineDefaultServiceAccount ¶
GetDefaultServiceAccount
func GetDefaultProject ¶
func GetDefaultProject() (org string)
func GetEntityPayloadList ¶
func GetEntityPayloadList() [][]byte
func GetIntegrationToken ¶
func GetIntegrationToken() string
GetIntegrationToken get the access token value in client opts (does not generate it)
func GetLastCheck ¶
func GetLastCheck() (lastCheck string)
func GetNoCheck ¶
func GetNoCheck() bool
func GetPreferences ¶
func GetPreferences() (err error)
func HttpClient ¶
HttpClient method is used to GET,POST,PUT or DELETE JSON data
func NewIntegrationClient ¶
func NewIntegrationClient(o IntegrationClientOptions)
NewIntegrationClient sets up options to invoke Integration APIs
func PostHttpOctet ¶
func PostHttpOctet(print bool, update bool, url string, proxyName string) (respBody []byte, err error)
PostHttpOctet method is used to send resources, proxy bundles, shared flows etc.
func PostHttpZip ¶
func PostHttpZip(print bool, auth bool, method string, url string, headers map[string]string, zipfile string) (err error)
PostHttpZip method is used to send resources, proxy bundles, shared flows etc.
func PrettifyJson ¶
func ReadPreferencesFile ¶
func ReadPreferencesFile() (err error)
func SetAccessToken ¶
func SetAccessToken() error
SetAccessToken read from cache or if not found or expired will generate a new one
func SetBigQueryIAMPermission ¶
SetBigQueryIAMPermission
func SetCloudSQLIAMPermission ¶
SetCloudSQLIAMPermission
func SetCloudStorageIAMPermission ¶
SetCloudStorageIAMPermission
func SetConnectorIAMPermission ¶
func SetConnectorIAMPermission(name string, memberName string, iamRole string, memberType string) (err error)
SetConnectorIAMPermission set permissions for a member on a connection
func SetDefaultRegion ¶
func SetEntityPayloadList ¶
func SetEntityPayloadList(respBody []byte)
func SetIntegrationToken ¶
func SetIntegrationToken(token string)
SetIntegrationToken sets the access token for use with Integration API calls
func SetNoCheck ¶
func SetProjectID ¶
SetProjectID sets the project id
func SetPubSubIAMPermission ¶
SetPubSubIAMPermission set permissions for a SA on a topic
func SetSecretManagerIAMPermission ¶
func SetSecretManagerIAMPermission(project string, secretName string, memberName string) (err error)
SetSecretManagerIAMPermission set permissions for a SA on a secret
func SetUseApigee ¶
func TestAndUpdateLastCheck ¶
func UseApigeeIntegration ¶
func UseApigeeIntegration()
func WriteArrayByteArrayToFile ¶
WriteArrayByteArrayToFile accepts [][]bytes and writes to a file
func WriteByteArrayToFile ¶
WriteByteArrayToFile accepts []bytes and writes to a file
func WriteDefaultProject ¶
func WritePerferencesFile ¶
WritePreferencesFile
func WriteToken ¶
Types ¶
type IntegrationClientOptions ¶
type IntegrationClientOptions struct { Region string //Integration region Token string //Google OAuth access token ServiceAccount string //Google service account json ProjectID string //GCP Project ID SkipLogInfo bool //LogInfo controls the log level SkipCheck bool //skip checking access token expiry SkipCache bool //skip writing access token to file PrintOutput bool //prints output from http calls ProxyUrl string //use a proxy url ExportToFile string //determine of the contents should be written to file UseApigeeIntegration bool //use Apigee Integration; defaults to Application Integration NoOutput bool //disables printing API responses }
IntegrationClientOptions is the base struct to hold all command arguments