Documentation
¶
Overview ¶
Code generated mechanically from wrappers.go (interfaces only) - DO NOT EDIT.
Code generated by tools/surfacegen (wrappers) - DO NOT EDIT.
Index ¶
- func CallFromSignature(cc client.AnySdkClientConfigurator, runtimeCtx dto.RuntimeCtx, ...) (client.AnySdkResponse, error)
- func NewAnySdkOpStoreDesignation(method OperationStore) client.AnySdkDesignation
- func NewMethodAnalysisInput(method OperationStore, service Service, isNilResponseAllowed bool, ...) anysdk.MethodAnalysisInput
- type ActionInsertPayload
- type ActionInsertResult
- type AddressSpace
- type AddressSpaceFormulator
- type Addressable
- type AnySdkClientConfigurator
- type AnySdkResponse
- type ArmouryGenerator
- type AuthContexts
- type AuthCtx
- type AuthDTO
- type AuthMetadata
- type AuthUtility
- type Column
- type ColumnDescriptor
- type ControlAttributes
- type DataFlowCfg
- type ExecContext
- type ExecPayload
- type ExecutionResponse
- type Executor
- type ExpectedRequest
- type ExpectedResponse
- type GQLReader
- type GraphQL
- type HTTPArmoury
- type HTTPArmouryParameters
- type HTTPElement
- type HTTPHTTPElement
- type HTTPPreparator
- type HttpParameters
- type HttpPreparatorStream
- type IDiscoveryAdapter
- type ITable
- type InsertPreparator
- type Invoker
- type ItemisationResult
- type MapReader
- type MapStream
- type MapStreamCollection
- type MethodAnalysisOutput
- type MethodAnalyzer
- type MethodSet
- type Methods
- type NameMangler
- type NamespaceCfg
- type OpenAPIService
- type OperationInverse
- type OperationStore
- type OutputPacket
- type PgTLSCfg
- type ProcessedOperationResponse
- type Provider
- type ProviderDescription
- type ProviderService
- type RegistryAPI
- type RegistryConfig
- type Relation
- type Resource
- type Response
- type RuntimeCtx
- type SQLBackendCfg
- type SQLEngine
- type SQLExternalColumn
- type SQLExternalTable
- type Schema
- type Service
- type SessionContext
- type StandardOperationStore
- type StreamTransformer
- type StreamTransformerFactory
- type Tabulation
- type TokenSemantic
- type Transform
- type TxnCoordinatorCfg
- type View
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CallFromSignature ¶
func CallFromSignature( cc client.AnySdkClientConfigurator, runtimeCtx dto.RuntimeCtx, authCtx *dto.AuthCtx, authTypeRequested string, enforceRevokeFirst bool, outErrFile io.Writer, prov Provider, designation client.AnySdkDesignation, argList client.AnySdkArgList, ) (client.AnySdkResponse, error)
func NewAnySdkOpStoreDesignation ¶
func NewAnySdkOpStoreDesignation(method OperationStore) client.AnySdkDesignation
func NewMethodAnalysisInput ¶
func NewMethodAnalysisInput( method OperationStore, service Service, isNilResponseAllowed bool, columns []ColumnDescriptor, isAwait bool, ) anysdk.MethodAnalysisInput
Types ¶
type ActionInsertPayload ¶
type ActionInsertPayload interface {
GetItemisationResult() ItemisationResult
GetParamsUsed() map[string]interface{}
GetReqEncoding() string
GetTableName() string
IsHousekeepingDone() bool
}
ActionInsertPayload mirrors methods on ActionInsertPayload
type ActionInsertResult ¶
ActionInsertResult mirrors methods on ActionInsertResult
type AddressSpace ¶
type AddressSpace interface {
ToRelation(p0 anysdk.AddressSpaceExpansionConfig) (Relation, error)
}
AddressSpace mirrors methods on AddressSpace
type AddressSpaceFormulator ¶
type AddressSpaceFormulator interface {
Formulate() error
GetAddressSpace() AddressSpace
}
AddressSpaceFormulator mirrors methods on AddressSpaceFormulator
type Addressable ¶
type Addressable interface {
ConditionIsValid(lhs string, rhs interface{}) bool
GetName() string
GetType() string
}
func DeprecatedNewAddressable ¶
func DeprecatedNewAddressable(inner anysdk.Addressable) Addressable
type AnySdkClientConfigurator ¶
type AnySdkClientConfigurator interface {
Auth(authCtx *AuthCtx, authTypeRequested string, enforceRevokeFirst bool) (client.AnySdkClient, error)
}
AnySdkClientConfigurator mirrors methods on AnySdkClientConfigurator
type AnySdkResponse ¶
AnySdkResponse mirrors methods on AnySdkResponse
type ArmouryGenerator ¶
type ArmouryGenerator interface {
GetHTTPArmoury() (anysdk.HTTPArmoury, error)
}
type AuthContexts ¶
type AuthContexts interface {
Clone() AuthContexts
}
AuthContexts mirrors methods on AuthContexts
type AuthCtx ¶
type AuthCtx struct {
// contains filtered or unexported fields
}
func (*AuthCtx) GetCredentialsBytes ¶
func (*AuthCtx) GetCredentialsSourceDescriptorString ¶
func (*AuthCtx) GetSQLCfg ¶
func (w *AuthCtx) GetSQLCfg() (SQLBackendCfg, bool)
type AuthDTO ¶
type AuthDTO interface {
GetAccountID() string
GetAccountIDEnvVar() string
GetAuthStyle() int
GetClientID() string
GetClientIDEnvVar() string
GetClientSecret() string
GetClientSecretEnvVar() string
GetEnvVarAPIKeyStr() string
GetEnvVarAPISecretStr() string
GetEnvVarPassword() string
GetEnvVarUsername() string
GetGrantType() string
GetInlineBasicCredentials() string
GetKeyEnvVar() string
GetKeyFilePath() string
GetKeyFilePathEnvVar() string
GetKeyID() string
GetKeyIDEnvVar() string
GetLocation() string
GetName() string
GetScopes() []string
GetSubject() string
GetSuccessor() (AuthDTO, bool)
GetTokenURL() string
GetType() string
GetValuePrefix() string
GetValues() url.Values
}
AuthDTO mirrors methods on AuthDTO
type AuthMetadata ¶
AuthMetadata mirrors methods on *AuthMetadata
type AuthUtility ¶
type AuthUtility interface {
ActivateAuth(authCtx *AuthCtx, principal string, authType string)
ApiTokenAuth(authCtx *AuthCtx, httpContext netutils.HTTPContext, enforceBearer bool) (*http.Client, error)
AuthRevoke(authCtx *AuthCtx) error
AwsSigningAuth(authCtx *AuthCtx, httpContext netutils.HTTPContext) (*http.Client, error)
AzureDefaultAuth(authCtx *AuthCtx, httpContext netutils.HTTPContext) (*http.Client, error)
BasicAuth(authCtx *AuthCtx, httpContext netutils.HTTPContext) (*http.Client, error)
CustomAuth(authCtx *AuthCtx, httpContext netutils.HTTPContext) (*http.Client, error)
GCloudOAuth(runtimeCtx RuntimeCtx, authCtx *AuthCtx, enforceRevokeFirst bool) (*http.Client, error)
GenericOauthClientCredentials(authCtx *AuthCtx, scopes []string, httpContext netutils.HTTPContext) (*http.Client, error)
GetCurrentGCloudOauthUser() ([]byte, error)
GoogleOauthServiceAccount(provider string, authCtx *AuthCtx, scopes []string, httpContext netutils.HTTPContext) (*http.Client, error)
ParseServiceAccountFile(ac *AuthCtx) (any, error)
}
AuthUtility mirrors methods on AuthUtility
type ColumnDescriptor ¶
type ColumnDescriptor interface {
GetAlias() string
GetDecoratedCol() string
GetIdentifier() string
GetName() string
GetNode() sqlparser.SQLNode
GetQualifier() string
GetRepresentativeSchema() anysdk.Schema
GetSchema() anysdk.Schema
GetVal() *sqlparser.SQLVal
// contains filtered or unexported methods
}
type ControlAttributes ¶
type ControlAttributes interface {
GetControlGCStatusColumnName() string
GetControlGenIDColumnName() string
GetControlInsIDColumnName() string
GetControlInsertEncodedIDColumnName() string
GetControlLatestUpdateColumnName() string
GetControlMaxTxnColumnName() string
GetControlSsnIDColumnName() string
GetControlTxnIDColumnName() string
}
ControlAttributes mirrors methods on ControlAttributes
type DataFlowCfg ¶
type DataFlowCfg interface {
GetMaxDependencies() int
}
DataFlowCfg mirrors methods on DataFlowCfg
type ExecContext ¶
type ExecContext interface {
GetExecPayload() internaldto.ExecPayload
GetResource() Resource
// contains filtered or unexported methods
}
type ExecPayload ¶
type ExecPayload interface {
GetPayloadMap() map[string]interface{}
}
ExecPayload mirrors methods on ExecPayload
type ExecutionResponse ¶
type ExecutionResponse interface {
GetStdErr() (*bytes.Buffer, bool)
GetStdOut() (*bytes.Buffer, bool)
}
ExecutionResponse mirrors methods on ExecutionResponse
type Executor ¶
type Executor interface {
Execute(p0 map[string]any) (ExecutionResponse, error)
}
Executor mirrors methods on Executor
type ExpectedRequest ¶
type ExpectedRequest interface {
GetBodyMediaType() string
}
ExpectedRequest mirrors methods on ExpectedRequest
type ExpectedResponse ¶
ExpectedResponse mirrors methods on ExpectedResponse
type GraphQL ¶
type GraphQL interface {
GetCursorJSONPath() (string, bool)
GetQuery() string
GetResponseJSONPath() (string, bool)
}
GraphQL mirrors methods on GraphQL
type HTTPArmoury ¶
type HTTPArmoury interface {
GetRequestParams() []HTTPArmouryParameters
SetRequestParams(p0 []HTTPArmouryParameters)
}
HTTPArmoury mirrors methods on HTTPArmoury
type HTTPArmouryParameters ¶
type HTTPArmouryParameters interface {
Encode() string
GetArgList() client.AnySdkArgList
GetParameters() HttpParameters
GetQuery() url.Values
GetRequest() *http.Request
SetNextPage(ops OperationStore, token string, tokenKey HTTPElement) (*http.Request, error)
SetRawQuery(p0 string)
ToFlatMap() (map[string]interface{}, error)
}
HTTPArmouryParameters mirrors methods on HTTPArmouryParameters
type HTTPElement ¶
type HTTPElement interface {
GetName() string
GetType() internaldto.HTTPElementType
SetTransformer(transformer func(interface{}) (interface{}, error))
IsTransformerPresent() bool
Transformer(t interface{}) (interface{}, error)
}
HTTPElement mirrors methods on HTTPElement (internaldto-backed)
type HTTPHTTPElement ¶
type HTTPHTTPElement interface {
GetName() string
GetLocation() httpelement.HTTPElementLocation
}
HTTPHTTPElement mirrors methods on HTTPHTTPElement (httpelement-backed)
type HTTPPreparator ¶
type HTTPPreparator interface {
BuildHTTPRequestCtx(p0 anysdk.HTTPPreparatorConfig) (HTTPArmoury, error)
}
HTTPPreparator mirrors methods on HTTPPreparator
func NewHTTPPreparator ¶
func NewHTTPPreparator( prov Provider, svc Service, m OperationStore, paramMap map[int]map[string]interface{}, parameters streaming.MapStream, execContext ExecContext, logger *logrus.Logger, ) HTTPPreparator
type HttpParameters ¶
type HttpParameters interface {
GetInlineParameterFlatMap() (map[string]interface{}, error)
ToFlatMap() (map[string]interface{}, error)
}
HttpParameters mirrors methods on HttpParameters
type HttpPreparatorStream ¶
type HttpPreparatorStream interface {
Next() (HTTPPreparator, bool)
Write(p0 HTTPPreparator) error
}
HttpPreparatorStream mirrors methods on HttpPreparatorStream
type IDiscoveryAdapter ¶
type IDiscoveryAdapter interface {
GetProvider(providerKey string) (Provider, error)
GetResourcesMap(prov Provider, serviceKey string) (map[string]Resource, error)
GetServiceHandlesMap(prov Provider) (map[string]ProviderService, error)
GetServiceShard(prov Provider, serviceKey string, resourceKey string) (Service, error)
PersistStaticExternalSQLDataSource(prov Provider) error
}
IDiscoveryAdapter mirrors methods on IDiscoveryAdapter
type ITable ¶
type ITable interface {
GetKey(p0 string) (interface{}, error)
GetKeyAsSqlVal(p0 string) (sqltypes.Value, error)
GetName() string
KeyExists(p0 string) bool
}
ITable mirrors methods on ITable
type InsertPreparator ¶
type InsertPreparator interface {
ActionInsertPreparation(payload ActionInsertPayload) ActionInsertResult
}
InsertPreparator mirrors methods on InsertPreparator
type Invoker ¶
type Invoker interface {
Invoke(ctx context.Context, req providerinvoker.Request) (providerinvoker.Result, error)
}
Invoker mirrors methods on Invoker
type ItemisationResult ¶
type ItemisationResult interface {
GetItems() (interface{}, bool)
}
ItemisationResult mirrors methods on ItemisationResult
type MapStreamCollection ¶
MapStreamCollection mirrors methods on MapStreamCollection
type MethodAnalysisOutput ¶
type MethodAnalysisOutput interface {
GetInsertTabulation() Tabulation
GetItemSchema() (Schema, bool)
GetOrderedStarColumnsNames() ([]string, error)
GetSelectTabulation() Tabulation
IsAwait() bool
IsNilResponseAllowed() bool
}
MethodAnalysisOutput mirrors methods on MethodAnalysisOutput
type MethodAnalyzer ¶
type MethodAnalyzer interface {
AnalyzeUnaryAction(p0 anysdk.MethodAnalysisInput) (MethodAnalysisOutput, error)
}
MethodAnalyzer mirrors methods on MethodAnalyzer
type MethodSet ¶
type MethodSet interface {
GetFirstMatch(params map[string]interface{}) (StandardOperationStore, map[string]interface{}, bool)
GetFirstNamespaceMatch(params map[string]any) (StandardOperationStore, map[string]any, bool)
GetFirst() (StandardOperationStore, string, bool)
}
type Methods ¶
type Methods interface {
OrderMethods() ([]StandardOperationStore, error)
}
Methods mirrors methods on Methods
type NameMangler ¶
NameMangler mirrors methods on NameMangler
type NamespaceCfg ¶
type NamespaceCfg interface {
GetRegex() (*regexp.Regexp, error)
GetTemplate() (*template.Template, error)
}
NamespaceCfg mirrors methods on NamespaceCfg
type OpenAPIService ¶
type OpenAPIService interface {
Service
// contains filtered or unexported methods
}
type OperationInverse ¶
type OperationInverse interface {
GetOperationStore() (StandardOperationStore, bool)
}
OperationInverse mirrors methods on OperationInverse
type OperationStore ¶
type OperationStore interface {
DeprecatedProcessResponse(response *http.Response) (map[string]interface{}, error)
GetName() string
GetNonBodyParameters() map[string]Addressable
GetPaginationRequestTokenSemantic() (TokenSemantic, bool)
GetPaginationResponseTokenSemantic() (TokenSemantic, bool)
GetParameter(paramKey string) (Addressable, bool)
GetRequestBodySchema() (Schema, error)
GetRequiredNonBodyParameters() map[string]Addressable
GetRequiredParameters() map[string]Addressable
GetResource() Resource
GetResponseBodySchemaAndMediaType() (Schema, string, error)
GetSelectItemsKey() string
GetService() anysdk.OpenAPIService
IsRequestBodyAttributeRenamed(p0 string) bool
IsRequiredRequestBodyProperty(key string) bool
ProcessResponse(p0 *http.Response) (ProcessedOperationResponse, error)
RenameRequestBodyAttribute(p0 string) (string, error)
RevertRequestBodyAttributeRename(p0 string) (string, error)
// contains filtered or unexported methods
}
OperationStore mirrors methods on OperationStore
type OutputPacket ¶
type OutputPacket interface {
GetColumnNames() []string
GetColumnOIDs() []oid.Oid
GetRawRows() map[int]map[int]interface{}
GetRows() map[string]map[string]interface{}
}
OutputPacket mirrors methods on OutputPacket
type PgTLSCfg ¶
type PgTLSCfg interface {
GetKeyPair() (tls.Certificate, error)
}
PgTLSCfg mirrors methods on PgTLSCfg
type ProcessedOperationResponse ¶
type ProcessedOperationResponse interface {
GetResponse() (Response, bool)
GetReversal() (HTTPPreparator, bool)
}
ProcessedOperationResponse mirrors methods on ProcessedOperationResponse
type Provider ¶
type Provider interface {
GetAuth() (AuthDTO, bool)
GetDeleteItemsKey() string
GetMinStackQLVersion() string
GetName() string
GetProtocolType() (client.ClientProtocolType, error)
// contains filtered or unexported methods
}
Provider mirrors methods on Provider
type ProviderDescription ¶
ProviderDescription mirrors methods on ProviderDescription
type ProviderService ¶
type ProviderService interface {
GetDescription() string
GetID() string
GetName() string
GetTitle() string
GetVersion() string
IsPreferred() bool
}
ProviderService mirrors methods on ProviderService
type RegistryAPI ¶
type RegistryAPI interface {
ClearProviderCache(p0 string) error
GetLatestPublishedVersion(p0 string) (string, error)
ListAllAvailableProviders() (map[string]ProviderDescription, error)
ListAllProviderVersions(p0 string) (map[string]ProviderDescription, error)
ListLocallyAvailableProviders() map[string]ProviderDescription
LoadProviderByName(p0 string, p1 string) (Provider, error)
PullAndPersistProviderArchive(p0 string, p1 string) error
RemoveProviderVersion(p0 string, p1 string) error
}
RegistryAPI mirrors methods on RegistryAPI
func NewRegistry ¶
func NewRegistry(registryCfg RegistryConfig, transport http.RoundTripper) (RegistryAPI, error)
type RegistryConfig ¶
type RegistryConfig struct {
RegistryURL string `json:"url" yaml:"url"`
SrcPrefix *string `json:"srcPrefix" yaml:"srcPrefix"`
DistPrefix *string `json:"distPrefix" yaml:"distPrefix"`
AllowSrcDownload bool `json:"allowSrcDownload" yaml:"allowSrcDownload"`
LocalDocRoot string `json:"localDocRoot" yaml:"localDocRoot"`
VerifyConfig *edcrypto.VerifierConfig `json:"verifyConfig" yaml:"verifyConfig"`
}
type Relation ¶
type Relation interface {
GetColumnDescriptors() []anysdk.ColumnDescriptor
GetColumns() []Column
}
Relation mirrors methods on Relation
type Resource ¶
type Resource interface {
FindMethod(key string) (StandardOperationStore, error)
GetFirstMethodFromSQLVerb(sqlVerb string) (StandardOperationStore, string, bool)
GetFirstNamespaceMethodMatchFromSQLVerb(sqlVerb string, parameters map[string]interface{}) (StandardOperationStore, map[string]interface{}, bool)
GetID() string
GetMethodsMatched() Methods
GetName() string
GetViewsForSqlDialect(sqlDialect string) ([]View, bool)
ToMap(extended bool) map[string]interface{}
}
Resource mirrors methods on Resource
type Response ¶
type Response interface {
Error() string
ExtractElement(e HTTPHTTPElement) (interface{}, error)
GetHttpResponse() *http.Response
GetProcessedBody() interface{}
HasError() bool
}
Response mirrors methods on Response
type RuntimeCtx ¶
type RuntimeCtx interface {
Copy() RuntimeCtx
}
RuntimeCtx mirrors methods on RuntimeCtx
type SQLBackendCfg ¶
type SQLBackendCfg interface {
GetDatabaseName() (string, error)
GetIntelViewSchemaName() string
GetOpsViewSchemaName() string
GetSQLDialect() string
GetSchemaType() string
GetTableSchemaName() string
}
SQLBackendCfg mirrors methods on SQLBackendCfg
type SQLEngine ¶
type SQLEngine interface {
CacheStoreGet(p0 string) ([]byte, error)
CacheStorePut(p0 string, p1 []byte, p2 string, p3 int) error
Exec(p0 string, p1 ...interface{}) (sql.Result, error)
ExecInTxn(queries []string) error
GetCurrentDiscoveryGenerationID(discoveryID string) (int, error)
GetCurrentGenerationID() (int, error)
GetDB() (*sql.DB, error)
GetNextDiscoveryGenerationID(discoveryID string) (int, error)
GetNextGenerationID() (int, error)
GetNextSessionID(p0 int) (int, error)
GetTx() (*sql.Tx, error)
Query(p0 string, p1 ...interface{}) (*sql.Rows, error)
QueryRow(query string, args ...any) *sql.Row
}
SQLEngine mirrors methods on SQLEngine
type SQLExternalColumn ¶
type SQLExternalColumn interface {
GetName() string
GetOid() uint32
GetPrecision() int
GetType() string
GetWidth() int
}
SQLExternalColumn mirrors methods on SQLExternalColumn
type SQLExternalTable ¶
type SQLExternalTable interface {
GetCatalogName() string
GetColumns() []SQLExternalColumn
GetName() string
GetSchemaName() string
}
SQLExternalTable mirrors methods on SQLExternalTable
type Schema ¶
type Schema interface {
FindByPath(path string, visited map[string]bool) Schema
GetAdditionalProperties() (Schema, bool)
GetAllColumns(p0 string) []string
GetItemsSchema() (Schema, error)
GetName() string
GetProperties() (anysdk.Schemas, error)
GetProperty(propertyKey string) (Schema, bool)
GetPropertySchema(key string) (Schema, error)
GetSelectSchema(itemsKey string, mediaType string) (Schema, string, error)
GetSelectionName() string
GetTitle() string
GetType() string
IsBoolean() bool
IsFloat() bool
IsIntegral() bool
IsReadOnly() bool
IsRequired(key string) bool
SetKey(p0 string)
Tabulate(p0 bool, p1 string) Tabulation
ToDescriptionMap(extended bool) map[string]interface{}
// contains filtered or unexported methods
}
Schema mirrors methods on Schema
func NewStringSchema ¶
func NewStringSchema(svc OpenAPIService, key string, path string) Schema
type Service ¶
type Service interface {
GetResource(resourceName string) (Resource, error)
GetSchema(key string) (Schema, error)
GetServers() (openapi3.Servers, bool)
// contains filtered or unexported methods
}
Service mirrors methods on Service
type SessionContext ¶
type SessionContext interface {
GetIsolationLevel() constants.IsolationLevel
GetRollbackType() constants.RollbackType
UpdateIsolationLevel(p0 string) error
}
SessionContext mirrors methods on SessionContext
type StandardOperationStore ¶
type StandardOperationStore interface {
OperationStore
// contains filtered or unexported methods
}
StandardOperationStore mirrors methods on StandardOperationStore
type StreamTransformer ¶
StreamTransformer mirrors methods on StreamTransformer
type StreamTransformerFactory ¶
type StreamTransformerFactory interface {
GetTransformer(input string) (StreamTransformer, error)
IsTransformable() bool
}
StreamTransformerFactory mirrors methods on StreamTransformerFactory
type Tabulation ¶
type Tabulation interface {
GetColumns() []anysdk.ColumnDescriptor
PushBackColumn(col anysdk.ColumnDescriptor)
RenameColumnsToXml() Tabulation
}
Tabulation mirrors methods on Tabulation
type TokenSemantic ¶
type TokenSemantic interface {
GetKey() string
GetLocation() string
GetTransformer() (anysdk.TokenTransformer, error)
}
TokenSemantic mirrors methods on TokenSemantic
type TxnCoordinatorCfg ¶
type TxnCoordinatorCfg interface {
GetMaxTxnDepth() int
}
TxnCoordinatorCfg mirrors methods on TxnCoordinatorCfg