Versions in this module Expand all Collapse all v39 v39.0.0 Apr 13, 2021 Changes in this version + const DefaultHostURLTemplate + const UnlimitedNumAttemptsValue + var DeadlineExceededByBackoff error = deadlineExceededByBackoffError + func Bool(value bool) *bool + func CloseBodyIfValid(httpResponse *http.Response) + func CloseLogFile() error + func Debug(v ...interface{}) + func Debugf(format string, v ...interface{}) + func Debugln(v ...interface{}) + func DefaultBodyHeaders() []string + func DefaultGenericHeaders() []string + func EnableInstanceMetadataServiceLookup() + func Float32(value float32) *float32 + func Float64(value float64) *float64 + func GetBodyHash(request *http.Request) (hashString string, err error) + func HTTPRequestMarshaller(requestStruct interface{}, httpRequest *http.Request) (err error) + func IfDebug(fn func()) + func IfInfo(fn func()) + func Int(value int) *int + func Int64(value int64) *int64 + func IsConfigurationProviderValid(conf ConfigurationProvider) (ok bool, err error) + func Logf(format string, v ...interface{}) + func Logln(v ...interface{}) + func MakeDefaultHTTPRequest(method, path string) (httpRequest http.Request) + func MakeDefaultHTTPRequestWithTaggedStruct(method, path string, requestStruct interface{}) (httpRequest http.Request, err error) + func PointerString(datastruct interface{}) (representation string) + func PrivateKeyFromBytes(pemData []byte, password *string) (key *rsa.PrivateKey, e error) + func PrivateKeyFromBytesWithPassword(pemData, password []byte) (key *rsa.PrivateKey, e error) + func RetryToken() string + func String(value string) *string + func Uint(value uint) *uint + func UnmarshalResponse(httpResponse *http.Response, responseStruct interface{}) (err error) + func UnmarshalResponseWithPolymorphicBody(httpResponse *http.Response, responseStruct interface{}, ...) (err error) + func Version() string + type AuthConfig struct + AuthType AuthenticationType + IsFromConfigFile bool + OboToken *string + type AuthenticationType string + const InstancePrincipal + const InstancePrincipalDelegationToken + const UnknownAuthenticationType + const UserPrincipal + type BaseClient struct + BasePath string + Configuration CustomClientConfiguration + HTTPClient HTTPRequestDispatcher + Host string + Interceptor RequestInterceptor + Signer HTTPRequestSigner + UserAgent string + func DefaultBaseClientWithSigner(signer HTTPRequestSigner) BaseClient + func NewClientWithConfig(configProvider ConfigurationProvider) (client BaseClient, err error) + func NewClientWithOboToken(configProvider ConfigurationProvider, oboToken string) (client BaseClient, err error) + func (client *BaseClient) Endpoint() string + func (client *BaseClient) RetryPolicy() *RetryPolicy + func (client *BaseClient) SetCustomClientConfiguration(config CustomClientConfiguration) + func (client BaseClient) Call(ctx context.Context, request *http.Request) (response *http.Response, err error) + func (client BaseClient) CallWithDetails(ctx context.Context, request *http.Request, details ClientCallDetails) (response *http.Response, err error) + type ClientCallDetails struct + Signer HTTPRequestSigner + type ConfigurationProvider interface + AuthType func() (AuthConfig, error) + KeyFingerprint func() (string, error) + Region func() (string, error) + TenancyOCID func() (string, error) + UserOCID func() (string, error) + func ComposingConfigurationProvider(providers []ConfigurationProvider) (ConfigurationProvider, error) + func ConfigurationProviderEnvironmentVariables(environmentVariablePrefix, privateKeyPassword string) ConfigurationProvider + func ConfigurationProviderFromFile(configFilePath, privateKeyPassword string) (ConfigurationProvider, error) + func ConfigurationProviderFromFileWithProfile(configFilePath, profile, privateKeyPassword string) (ConfigurationProvider, error) + func CustomProfileConfigProvider(customConfigPath string, profile string) ConfigurationProvider + func DefaultConfigProvider() ConfigurationProvider + func NewRawConfigurationProvider(tenancy, user, region, fingerprint, privateKey string, ...) ConfigurationProvider + type CustomClientConfiguration struct + RetryPolicy *RetryPolicy + type HTTPRequestDispatcher interface + Do func(req *http.Request) (*http.Response, error) + type HTTPRequestSigner interface + Sign func(r *http.Request) error + func DefaultRequestSigner(provider KeyProvider) HTTPRequestSigner + func NewSignerFromOCIRequestSigner(oldSigner HTTPRequestSigner, predicate SignerBodyHashPredicate) (HTTPRequestSigner, error) + func RequestSigner(provider KeyProvider, genericHeaders, bodyHeaders []string) HTTPRequestSigner + func RequestSignerExcludeBody(provider KeyProvider) HTTPRequestSigner + func RequestSignerWithBodyHashingPredicate(provider KeyProvider, genericHeaders, bodyHeaders []string, ...) HTTPRequestSigner + type KeyProvider interface + KeyID func() (string, error) + PrivateRSAKey func() (*rsa.PrivateKey, error) + type OCIOperation func(context.Context, OCIRequest) (OCIResponse, error) + type OCIOperationResponse struct + AttemptNumber uint + Error error + Response OCIResponse + func NewOCIOperationResponse(response OCIResponse, err error, attempt uint) OCIOperationResponse + type OCIRequest interface + HTTPRequest func(method, path string) (http.Request, error) + type OCIResponse interface + HTTPResponse func() *http.Response + func Retry(ctx context.Context, request OCIRetryableRequest, operation OCIOperation, ...) (OCIResponse, error) + type OCIRetryableRequest interface + RetryPolicy func() *RetryPolicy + type PolymorphicJSONUnmarshaler interface + UnmarshalPolymorphicJSON func(data []byte) (interface{}, error) + type Region string + const RegionAPChiyoda1 + const RegionAPChuncheon1 + const RegionAPHyderabad1 + const RegionAPMelbourne1 + const RegionAPMumbai1 + const RegionAPOsaka1 + const RegionAPSeoul1 + const RegionAPSydney1 + const RegionAPTokyo1 + const RegionCAMontreal1 + const RegionCAToronto1 + const RegionEUAmsterdam1 + const RegionEUZurich1 + const RegionFRA + const RegionIAD + const RegionLHR + const RegionMEDubai1 + const RegionMEJeddah1 + const RegionPHX + const RegionSASantiago1 + const RegionSASaopaulo1 + const RegionSEA + const RegionSJC1 + const RegionUKCardiff1 + const RegionUKGovCardiff1 + const RegionUKGovLondon1 + const RegionUSGovAshburn1 + const RegionUSGovChicago1 + const RegionUSGovPhoenix1 + const RegionUSLangley1 + const RegionUSLuke1 + func StringToRegion(stringRegion string) (r Region) + func (region Region) Endpoint(service string) string + func (region Region) EndpointForTemplate(service string, serviceEndpointTemplate string) string + type RequestInterceptor func(*http.Request) error + type RequestMetadata struct + RetryPolicy *RetryPolicy + type RetryPolicy struct + MaximumNumberAttempts uint + NextDuration func(OCIOperationResponse) time.Duration + ShouldRetryOperation func(OCIOperationResponse) bool + func NewRetryPolicy(attempts uint, retryOperation func(OCIOperationResponse) bool, ...) RetryPolicy + func NoRetryPolicy() RetryPolicy + type SDKDate struct + Date time.Time + func NewSDKDateFromString(dateString string) (*SDKDate, error) + func (t *SDKDate) MarshalJSON() (buff []byte, e error) + func (t *SDKDate) String() string + func (t *SDKDate) UnmarshalJSON(data []byte) (e error) + type SDKTime struct + func (t *SDKTime) MarshalJSON() (buff []byte, e error) + func (t *SDKTime) UnmarshalJSON(data []byte) (e error) + type ServiceError interface + GetCode func() string + GetHTTPStatusCode func() int + GetMessage func() string + GetOpcRequestID func() string + func IsServiceError(err error) (failure ServiceError, ok bool) + type SignerBodyHashPredicate func(r *http.Request) bool Other modules containing this package github.com/oracle/oci-go-sdk github.com/oracle/oci-go-sdk/v25 github.com/oracle/oci-go-sdk/v26 github.com/oracle/oci-go-sdk/v27 github.com/oracle/oci-go-sdk/v28 github.com/oracle/oci-go-sdk/v29 github.com/oracle/oci-go-sdk/v30 github.com/oracle/oci-go-sdk/v31 github.com/oracle/oci-go-sdk/v32 github.com/oracle/oci-go-sdk/v33 github.com/oracle/oci-go-sdk/v34 github.com/oracle/oci-go-sdk/v35 github.com/oracle/oci-go-sdk/v36 github.com/oracle/oci-go-sdk/v37 github.com/oracle/oci-go-sdk/v38 github.com/oracle/oci-go-sdk/v40 github.com/oracle/oci-go-sdk/v41 github.com/oracle/oci-go-sdk/v42 github.com/oracle/oci-go-sdk/v43 github.com/oracle/oci-go-sdk/v44 github.com/oracle/oci-go-sdk/v45 github.com/oracle/oci-go-sdk/v46 github.com/oracle/oci-go-sdk/v47 github.com/oracle/oci-go-sdk/v48 github.com/oracle/oci-go-sdk/v49 github.com/oracle/oci-go-sdk/v50 github.com/oracle/oci-go-sdk/v51 github.com/oracle/oci-go-sdk/v52 github.com/oracle/oci-go-sdk/v53 github.com/oracle/oci-go-sdk/v54 github.com/oracle/oci-go-sdk/v55 github.com/oracle/oci-go-sdk/v56 github.com/oracle/oci-go-sdk/v57 github.com/oracle/oci-go-sdk/v58 github.com/oracle/oci-go-sdk/v59 github.com/oracle/oci-go-sdk/v60 github.com/oracle/oci-go-sdk/v61 github.com/oracle/oci-go-sdk/v62 github.com/oracle/oci-go-sdk/v63 github.com/oracle/oci-go-sdk/v64 github.com/oracle/oci-go-sdk/v65