Documentation ¶
Index ¶
- Constants
- Variables
- func ApiVersion() string
- func ApiVersionNumber() string
- func GetEndpointURL(endpoint ForceEndpoint) (endpointURL string, err error)
- func SetApiVersion(version string)
- func ValidateSFID(input string) bool
- type AuraDefinition
- type AuraDefinitionBundle
- type AuraDefinitionBundleResult
- type BatchInfo
- type BatchResult
- type BundleManifest
- type CodeCoverageWarning
- type ComponentDetails
- type ComponentFailure
- type ComponentFile
- type ComponentSuccess
- type DescribeMetadataObject
- type FieldName
- type Force
- func (f *Force) AbortBulkJob(jobId string) (result JobInfo, err error)
- func (f *Force) AbortBulkJobV2(jobId string) (result JobInfoV2, err error)
- func (f *Force) AddBatchToJob(content string, job JobInfo) (result BatchInfo, err error)
- func (f *Force) AddBatchToJobV2(job JobInfoV2, content string) (result BatchInfo, err error)
- func (f *Force) BulkQuery(soql string, jobId string, contenttype string) (result BatchInfo, err error)
- func (f *Force) ChangePassword(id string, attrs map[string]string) (result string, err error, emessages []ForceError)
- func (f *Force) CloseBulkJob(jobId string) (result JobInfo, err error)
- func (f *Force) CloseBulkJobV2(jobId string) (result JobInfoV2, err error)
- func (f *Force) CompactLayoutsSObject(name string) (result string, err error)
- func (f *Force) Count(sobject string) (result int, err error)
- func (f *Force) CreateBulkJob(jobInfo JobInfo) (result JobInfo, err error)
- func (f *Force) CreateBulkJobV2(jobInfo JobInfoV2) (result JobInfoV2, err error)
- func (f *Force) CreateDataPipeline(name string, masterLabel string, apiVersionNumber string, scriptContent string, ...) (result ForceCreateRecordResult, err error, emessages []ForceError)
- func (f *Force) CreateDataPipelineJob(id string) (result ForceCreateRecordResult, err error, emessages []ForceError)
- func (f *Force) CreateRecord(sobject string, attrs map[string]string) (id string, err error, emessages []ForceError)
- func (f *Force) CreateRecordJSON(sobject, data string) (id string, err error)
- func (f *Force) CreateToolingRecord(objecttype string, attrs map[string]string) (result ForceCreateRecordResult, err error)
- func (f *Force) DefaultDebugLevel() (id string, err error, emessages []ForceError)
- func (f *Force) DeleteDataPipeline(id string) (err error)
- func (f *Force) DeleteRecord(sobject, id string) (err error)
- func (f *Force) DeleteRecordExternalID(sobject, field, id string) (err error)
- func (f *Force) DeleteToolingRecord(objecttype string, id string) (err error)
- func (f *Force) DescribeSObject(name string) (result string, err error)
- func (f *Force) DumpListStack(l *list.List)
- func (f *Force) Get(url string) (object ForceRecord, err error)
- func (f *Force) GetBase64(sobject, id, field string) (object []byte, err error)
- func (f *Force) GetBase64Stream(sobject, id, field string) (response *http.Response, err error)
- func (f *Force) GetBatchInfo(jobId string, batchId string, contenttype string) (result BatchInfo, err error)
- func (f *Force) GetBatches(jobId string) (result []BatchInfo, err error)
- func (f *Force) GetBulkJobs() (result []JobInfo, err error)
- func (f *Force) GetBulkJobsV2() (result []JobInfoV2, err error)
- func (f *Force) GetCodeCoverage(classId string, className string) (err error)
- func (f *Force) GetCommunities() (result ForceCommunitiesResult, err error)
- func (f *Force) GetCommunity(id string) (result ForceCommunity, err error)
- func (f *Force) GetCompactLayoutsAsBytes(name string) (sobject []byte, err error)
- func (f *Force) GetConsoleLogLevelId() (result string, err error)
- func (f *Force) GetDataPipeline(name string) (results ForceQueryResult, err error)
- func (f *Force) GetIDs(sobject string, pkField string, where map[string]interface{}, ...) (result []string, totalSize int, err error)
- func (f *Force) GetIDsStream(sobject string, pkField string, where map[string]interface{}, ...) (files []string, err error)
- func (f *Force) GetIdentify() (result ForceRecord, err error)
- func (f *Force) GetIdentifyAsBytes() (result []byte, err error)
- func (f *Force) GetJobInfo(jobId string) (result JobInfo, err error)
- func (f *Force) GetJobInfoV2(jobId string) (result JobInfoV2, err error)
- func (f *Force) GetLayoutsAsBytes(name string) (sobject []byte, err error)
- func (f *Force) GetLimits() (result map[string]ForceLimit, err error)
- func (f *Force) GetListviewDescribeAsBytes(name, id string) (sobject []byte, err error)
- func (f *Force) GetListviewsAsBytes(name string) (sobject []byte, err error)
- func (f *Force) GetObjectSpec(objectName string, l *list.List) (result *SelectStruct)
- func (f *Force) GetPasswordStatus(id string) (result ForcePasswordStatusResult, err error)
- func (f *Force) GetPrevObjectSpec(objectName string, l *list.List) (foundItem *SelectStruct)
- func (f *Force) GetRecord(sobject, id string) (object ForceRecord, err error)
- func (f *Force) GetResources() (result ForceRecord, err error)
- func (f *Force) GetSobject(name string) (sobject ForceSobject, err error)
- func (f *Force) GetSobjectAsBytes(name string) (sobject []byte, err error)
- func (f *Force) GetToolingRecord(sobject, id string) (object ForceRecord, err error)
- func (f *Force) GetToolingRecordAsBytes(sobject, id string) ([]byte, error)
- func (f *Force) HasObject(objectName string, l *list.List) (result bool, foundItem *SelectStruct)
- func (f *Force) LayoutsSObject(name string) (result string, err error)
- func (f *Force) ListSObjectName() (sobjects []string, err error)
- func (f *Force) ListSObjects() (sobjects []ForceSobject, err error)
- func (f *Force) ListSObjectsAsByte() (sobjects []byte, err error)
- func (f *Force) ListViewDescribeSObject(name, id string) (result string, err error)
- func (f *Force) ListViewsSObject(name string) (result string, err error)
- func (f *Force) PushFieldName(fieldName string, spec *SelectStruct, IsObject bool)
- func (f *Force) Query(query string, queryAll, tooling bool) (result ForceQueryResult, err error)
- func (f *Force) QueryAndSend(query string, processor chan<- ForceRecord, options ...func(*QueryOptions)) (err error)
- func (f *Force) QueryDataPipeline(soql string) (results ForceQueryResult, err error)
- func (f *Force) QueryDataPipelineAsBytes(soql string) (sobject []byte, err error)
- func (f *Force) QueryDefaultDebugLevel() (id string, err error)
- func (f *Force) QueryLogs() (results ForceQueryResult, err error)
- func (f *Force) QueryProfile(fields ...string) (results ForceQueryResult, err error)
- func (f *Force) QueryTraceFlags() (results ForceQueryResult, err error)
- func (f *Force) RefreshSession() (err error)
- func (f *Force) ResetPassword(id string) (result ForcePasswordResetResult, err error)
- func (f *Force) RetrieveBulkBatchResults(job JobInfo, batchId string) (results []string, err error)
- func (f *Force) RetrieveBulkJobQueryResults(job JobInfo, batchId string, resultId string) ([]byte, error)
- func (f *Force) RetrieveBulkQuery(jobId string, batchId string) (result []byte, err error)
- func (f *Force) RetrieveBulkQueryResults(jobId string, batchId string, resultId string) (result []byte, err error)
- func (f *Force) RetrieveBulkResultStream(job JobInfo, batchId string, resultId string) (*http.Response, error)
- func (f *Force) RetrieveEventLogFile(elfId string) (result string, err error)
- func (f *Force) RetrieveLog(logId string) (result string, err error)
- func (f *Force) Select(sobject string, fields []string, where map[string]interface{}, ...) (results []ForceRecord, totalSize int, err error)
- func (f *Force) SelectByID(sobject string, fields []string, id string) (result ForceRecord, totalSize int, err error)
- func (f *Force) SetHTTPTrace(trace bool)
- func (f *Force) SetHTTPTraceDetail(trace bool)
- func (f *Force) StartTrace(userId ...string) (result ForceCreateRecordResult, err error, emessages []ForceError)
- func (f *Force) Tooling(sobject string, fields []string, where map[string]interface{}, ...) (results []ForceRecord, totalSize int, err error)
- func (f *Force) UpdateApiVersion(version string) (err error)
- func (f *Force) UpdateAuraComponent(source map[string]string, id string) (err error)
- func (f *Force) UpdateCredentials(creds ForceSession)
- func (f *Force) UpdateDataPipeline(id string, masterLabel string, scriptContent string) (err error)
- func (f *Force) UpdateRecord(sobject, id string, attrs map[string]string) (err error)
- func (f *Force) UpdateRecordJSON(sobject, id, data string) (err error)
- func (f *Force) UpsertRecordJSON(sobject, extidname, extid, data string) (id string, err error)
- func (f *Force) Whoami() (me ForceRecord, err error)
- type ForceCheckDeploymentStatusResult
- type ForceCommunitiesResult
- type ForceCommunity
- type ForceConnectedApp
- type ForceConnectedApps
- type ForceCreateRecordResult
- type ForceEndpoint
- type ForceError
- type ForceLimit
- type ForceLimits
- type ForceMetadata
- type ForcePartner
- type ForcePasswordResetResult
- type ForcePasswordStatusResult
- type ForceQueryResult
- type ForceRecord
- type ForceSession
- func ForceSoapLogin(endpoint ForceEndpoint, username string, password string) (creds ForceSession, err error)
- func GetAccessAuthorization(code, redirect_uri, client_id, client_secret, endpointURL string) (result ForceSession, err error)
- func GetServerAuthorization(orgID, clientID, userMail, authURL, endpointURL string) (result ForceSession, err error)
- type ForceSobject
- type ForceSobjectFields
- type ForceSobjectsResult
- type GenericForceError
- type JobInfo
- type JobInfoV2
- type LoginFault
- type MetadataDescribeResult
- type OAuthError
- type QueryOptions
- type RefreshMethod
- type Result
- type RunTestResult
- type SelectStruct
- type SessionOptions
- type Soap
- type SoapError
- type SoapFault
- type TestFailure
- type TestSuccess
- type UserInfo
Constants ¶
Variables ¶
View Source
var ( ClientId string = "3MVG9QBLg8QGkFeoxS81gotuAQnbfy4bLU7HErU2yl5I8hFgEP42qQHtJRZelb_rogsKrSfLz_gE5uFRquYwf" Timeout int64 = 0 CustomEndpoint string = "" )
CONFIGS
View Source
var ( SalesforceError = errors.New("Salesforce internal error") SessionExpiredError = errors.New("Session expired") SessionFailRefresh = errors.New("Failed to refresh session") DeleteRecordResourceNotExistsError = errors.New("The requested resource does not exist") EntityIsDeleted = errors.New("Entity is deleted") )
ERRORS
View Source
var InvalidBulkObject = errors.New("Object Does Not Support Bulk API")
Functions ¶
func ApiVersion ¶
func ApiVersion() string
func ApiVersionNumber ¶
func ApiVersionNumber() string
func GetEndpointURL ¶
func GetEndpointURL(endpoint ForceEndpoint) (endpointURL string, err error)
func SetApiVersion ¶
func SetApiVersion(version string)
func ValidateSFID ¶
ValidateSFID validate a Salesforce ID Stackoverflow: https://stackoverflow.com/a/29299786/1333724 Gist: https://gist.github.com/maxmcd/a32a35c0eebcfb77cd005f9dd8958815 Post about SF unique ID: https://astadiaemea.wordpress.com/2010/06/21/15-or-18-character-ids-in-salesforce-com-–-do-you-know-how-useful-unique-ids-are-to-your-development-effort/
Types ¶
type AuraDefinition ¶
type AuraDefinitionBundle ¶
type BatchInfo ¶
type BatchInfo struct { Id string `xml:"id,omitempty" json:"id,omitempty"` JobId string `xml:"jobId,omitempty" json:"jobId,omitempty"` State string `xml:"state,omitempty" json:"state,omitempty"` StateMessage interface{} `xml:"stateMessage,omitempty" json:"stateMessage,omitempty"` CreatedDate string `xml:"createdDate,omitempty" json:"createdDate,omitempty"` NumberRecordsProcessed int64 `xml:"numberRecordsProcessed,omitempty" json:"numberRecordsProcessed,omitempty"` NumberRecordsFailed int64 `xml:"numberRecordsFailed,omitempty" json:"numberRecordsFailed,omitempty"` SystemModstamp string `xml:"systemModstamp,omitempty" json:"systemModstamp,omitempty"` TotalProcessingTime int64 `xml:"totalProcessingTime,omitempty" json:"totalProcessingTime,omitempty"` ApexProcessingTime int64 `xml:"apexProcessingTime,omitempty" json:"apexProcessingTime,omitempty"` ApiActiveProcessingTime int64 `xml:"apiActiveProcessingTime,omitempty" json:"apiActiveProcessingTime,omitempty"` }
type BatchResult ¶
type BatchResult struct {
Results []string
}
type BundleManifest ¶
type BundleManifest struct { Name string Id string Files []ComponentFile }
type CodeCoverageWarning ¶
type ComponentDetails ¶
type ComponentDetails struct { ComponentSuccesses []ComponentSuccess `xml:"componentSuccesses"` ComponentFailures []ComponentFailure `xml:"componentFailures"` RunTestResult RunTestResult `xml:"runTestResult"` }
type ComponentFailure ¶
type ComponentFailure struct { Changed bool `xml:"changed"` Created bool `xml:"created"` Deleted bool `xml:"deleted"` FileName string `xml:"fileName"` FullName string `xml:"fullName"` LineNumber int `xml:"lineNumber"` Problem string `xml:"problem"` ProblemType string `xml:"problemType"` Success bool `xml:"success"` }
type ComponentFile ¶
type ComponentSuccess ¶
type DescribeMetadataObject ¶
type Force ¶
type Force struct { Credentials *ForceSession Metadata *ForceMetadata Partner *ForcePartner }
func NewForce ¶
func NewForce(creds *ForceSession) (force *Force)
func (*Force) AbortBulkJobV2 ¶
func (*Force) AddBatchToJob ¶
func (*Force) AddBatchToJobV2 ¶
func (*Force) ChangePassword ¶
func (*Force) CloseBulkJobV2 ¶
func (*Force) CompactLayoutsSObject ¶
func (*Force) CreateBulkJob ¶
func (*Force) CreateBulkJobV2 ¶
func (*Force) CreateDataPipeline ¶
func (f *Force) CreateDataPipeline(name string, masterLabel string, apiVersionNumber string, scriptContent string, scriptType string) (result ForceCreateRecordResult, err error, emessages []ForceError)
func (*Force) CreateDataPipelineJob ¶
func (f *Force) CreateDataPipelineJob(id string) (result ForceCreateRecordResult, err error, emessages []ForceError)
func (*Force) CreateRecord ¶
func (*Force) CreateRecordJSON ¶
func (*Force) CreateToolingRecord ¶
func (*Force) DefaultDebugLevel ¶
func (f *Force) DefaultDebugLevel() (id string, err error, emessages []ForceError)
func (*Force) DeleteDataPipeline ¶
func (*Force) DeleteRecord ¶
func (*Force) DeleteRecordExternalID ¶
func (*Force) DeleteToolingRecord ¶
func (*Force) DescribeSObject ¶
func (*Force) DumpListStack ¶
func (*Force) GetBase64Stream ¶
func (*Force) GetBatchInfo ¶
func (*Force) GetBulkJobs ¶
func (*Force) GetBulkJobsV2 ¶
func (*Force) GetCodeCoverage ¶
func (*Force) GetCommunities ¶
func (f *Force) GetCommunities() (result ForceCommunitiesResult, err error)
func (*Force) GetCommunity ¶
func (f *Force) GetCommunity(id string) (result ForceCommunity, err error)
func (*Force) GetCompactLayoutsAsBytes ¶
func (*Force) GetConsoleLogLevelId ¶
func (*Force) GetDataPipeline ¶
func (f *Force) GetDataPipeline(name string) (results ForceQueryResult, err error)
func (*Force) GetIDs ¶
func (f *Force) GetIDs(sobject string, pkField string, where map[string]interface{}, limit, offset int) (result []string, totalSize int, err error)
GetIDs func
func (*Force) GetIDsStream ¶
func (*Force) GetIdentify ¶
func (f *Force) GetIdentify() (result ForceRecord, err error)
func (*Force) GetIdentifyAsBytes ¶
func (*Force) GetJobInfoV2 ¶
func (*Force) GetLayoutsAsBytes ¶
func (*Force) GetListviewDescribeAsBytes ¶
func (*Force) GetListviewsAsBytes ¶
func (*Force) GetObjectSpec ¶
func (f *Force) GetObjectSpec(objectName string, l *list.List) (result *SelectStruct)
func (*Force) GetPasswordStatus ¶
func (f *Force) GetPasswordStatus(id string) (result ForcePasswordStatusResult, err error)
func (*Force) GetPrevObjectSpec ¶
func (f *Force) GetPrevObjectSpec(objectName string, l *list.List) (foundItem *SelectStruct)
func (*Force) GetRecord ¶
func (f *Force) GetRecord(sobject, id string) (object ForceRecord, err error)
func (*Force) GetResources ¶
func (f *Force) GetResources() (result ForceRecord, err error)
func (*Force) GetSobject ¶
func (f *Force) GetSobject(name string) (sobject ForceSobject, err error)
func (*Force) GetSobjectAsBytes ¶
func (*Force) GetToolingRecord ¶
func (f *Force) GetToolingRecord(sobject, id string) (object ForceRecord, err error)
func (*Force) GetToolingRecordAsBytes ¶
func (*Force) LayoutsSObject ¶
func (*Force) ListSObjectName ¶
func (*Force) ListSObjects ¶
func (f *Force) ListSObjects() (sobjects []ForceSobject, err error)
func (*Force) ListSObjectsAsByte ¶
func (*Force) ListViewDescribeSObject ¶
func (*Force) ListViewsSObject ¶
func (*Force) PushFieldName ¶
func (f *Force) PushFieldName(fieldName string, spec *SelectStruct, IsObject bool)
func (*Force) Query ¶
func (f *Force) Query(query string, queryAll, tooling bool) (result ForceQueryResult, err error)
func (*Force) QueryAndSend ¶
func (f *Force) QueryAndSend(query string, processor chan<- ForceRecord, options ...func(*QueryOptions)) (err error)
func (*Force) QueryDataPipeline ¶
func (f *Force) QueryDataPipeline(soql string) (results ForceQueryResult, err error)
func (*Force) QueryDataPipelineAsBytes ¶
func (*Force) QueryDefaultDebugLevel ¶
func (*Force) QueryLogs ¶
func (f *Force) QueryLogs() (results ForceQueryResult, err error)
func (*Force) QueryProfile ¶
func (f *Force) QueryProfile(fields ...string) (results ForceQueryResult, err error)
func (*Force) QueryTraceFlags ¶
func (f *Force) QueryTraceFlags() (results ForceQueryResult, err error)
func (*Force) ResetPassword ¶
func (f *Force) ResetPassword(id string) (result ForcePasswordResetResult, err error)
func (*Force) RetrieveBulkBatchResults ¶
func (*Force) RetrieveBulkJobQueryResults ¶
func (*Force) RetrieveBulkQuery ¶
func (*Force) RetrieveBulkQueryResults ¶
func (*Force) RetrieveBulkResultStream ¶
func (*Force) RetrieveEventLogFile ¶
func (*Force) Select ¶
func (f *Force) Select(sobject string, fields []string, where map[string]interface{}, limit, offset int, customQuery string) (results []ForceRecord, totalSize int, err error)
Select func
func (*Force) SelectByID ¶
func (f *Force) SelectByID(sobject string, fields []string, id string) (result ForceRecord, totalSize int, err error)
SelectByID func
func (*Force) SetHTTPTrace ¶
func (*Force) SetHTTPTraceDetail ¶
func (*Force) StartTrace ¶
func (f *Force) StartTrace(userId ...string) (result ForceCreateRecordResult, err error, emessages []ForceError)
func (*Force) Tooling ¶
func (f *Force) Tooling(sobject string, fields []string, where map[string]interface{}, limit, offset int) (results []ForceRecord, totalSize int, err error)
Tooling func
func (*Force) UpdateApiVersion ¶
func (*Force) UpdateAuraComponent ¶
func (*Force) UpdateCredentials ¶
func (f *Force) UpdateCredentials(creds ForceSession)
func (*Force) UpdateDataPipeline ¶
func (*Force) UpdateRecord ¶
func (*Force) UpdateRecordJSON ¶
func (*Force) UpsertRecordJSON ¶
func (*Force) Whoami ¶
func (f *Force) Whoami() (me ForceRecord, err error)
type ForceCheckDeploymentStatusResult ¶
type ForceCheckDeploymentStatusResult struct { CheckOnly bool `xml:"checkOnly"` CompletedDate time.Time `xml:"completedDate"` CreatedDate time.Time `xml:"createdDate"` Details ComponentDetails `xml:"details"` Done bool `xml:"done"` Id string `xml:"id"` NumberComponentErrors int `xml:"numberComponentErrors"` NumberComponentsDeployed int `xml:"numberComponentsDeployed"` NumberComponentsTotal int `xml:"numberComponentsTotal"` NumberTestErrors int `xml:"numberTestErrors"` NumberTestsCompleted int `xml:"numberTestsCompleted"` NumberTestsTotal int `xml:"numberTestsTotal"` RollbackOnError bool `xml:"rollbackOnError"` Status string `xml:"status"` StateDetail string `xml:"stateDetail"` Success bool `xml:"success"` }
func (ForceCheckDeploymentStatusResult) String ¶
func (results ForceCheckDeploymentStatusResult) String() string
type ForceCommunitiesResult ¶
type ForceCommunitiesResult struct { Communities []ForceCommunity `json:"communities"` Total int `json:"total"` }
type ForceCommunity ¶
type ForceCommunity struct { AllowChatterAccessWithoutLogin bool `json:"allowChatterAccessWithoutLogin"` AllowMembersToFlag bool `json:"allowMembersToFlag"` Description interface{} `json:"description"` ID string `json:"id"` InvitationsEnabled bool `json:"invitationsEnabled"` KnowledgeableEnabled bool `json:"knowledgeableEnabled"` LoginURL string `json:"loginUrl"` Name string `json:"name"` NicknameDisplayEnabled bool `json:"nicknameDisplayEnabled"` PrivateMessagesEnabled bool `json:"privateMessagesEnabled"` ReputationEnabled bool `json:"reputationEnabled"` SendWelcomeEmail bool `json:"sendWelcomeEmail"` SiteAsContainerEnabled bool `json:"siteAsContainerEnabled"` SiteURL string `json:"siteUrl"` Status string `json:"status"` URL string `json:"url"` URLPathPrefix string `json:"urlPathPrefix"` }
type ForceConnectedApp ¶
type ForceConnectedApps ¶
type ForceConnectedApps []ForceConnectedApp
func (ForceConnectedApps) Len ¶
func (apps ForceConnectedApps) Len() int
func (ForceConnectedApps) Less ¶
func (apps ForceConnectedApps) Less(i, j int) bool
func (ForceConnectedApps) Swap ¶
func (apps ForceConnectedApps) Swap(i, j int)
type ForceCreateRecordResult ¶
type ForceEndpoint ¶
type ForceEndpoint int
const ( EndpointProduction ForceEndpoint = iota EndpointTest EndpointPrerelease EndpointMobile1 EndpointCustom EndpointInstace )
type ForceError ¶
type ForceError struct { Message string `json:"message"` ErrorCode string `json:"errorCode"` Fields []string `json:"fields"` }
func (*ForceError) Error ¶
func (e *ForceError) Error() string
type ForceLimit ¶
type ForceLimits ¶
type ForceLimits map[string]ForceLimit
type ForceMetadata ¶
func NewForceMetadata ¶
func NewForceMetadata(force *Force) (fm *ForceMetadata)
func (*ForceMetadata) CheckStatus ¶
func (fm *ForceMetadata) CheckStatus(id string) (err error)
func (*ForceMetadata) DescribeMetadata ¶
func (fm *ForceMetadata) DescribeMetadata() (describe MetadataDescribeResult, err error)
type ForcePartner ¶
type ForcePartner struct {
Force *Force
}
func NewForcePartner ¶
func NewForcePartner(force *Force) (partner *ForcePartner)
func (*ForcePartner) CheckStatus ¶
func (partner *ForcePartner) CheckStatus(id string) (err error)
type ForcePasswordResetResult ¶
type ForcePasswordResetResult struct {
NewPassword string
}
type ForcePasswordStatusResult ¶
type ForcePasswordStatusResult struct {
IsExpired bool
}
type ForceQueryResult ¶
type ForceQueryResult struct { Done bool `json:"done"` Records []ForceRecord `json:"records"` TotalSize int `json:"totalSize"` NextRecordsUrl string `json:"nextRecordsUrl"` }
func (*ForceQueryResult) Update ¶
func (result *ForceQueryResult) Update(other ForceQueryResult, force *Force)
type ForceRecord ¶
type ForceRecord map[string]interface{}
type ForceSession ¶
type ForceSession struct { AccessToken string `json:"access_token"` InstanceUrl string `json:"instance_url"` IssuedAt string `json:"issued_at"` Scope string `json:"scope"` ClientId string RefreshToken string `json:"refresh_token"` ForceEndpoint ForceEndpoint UserInfo *UserInfo UserId string `json:"id"` SessionOptions *SessionOptions SessionRefreshed bool }
func ForceSoapLogin ¶
func ForceSoapLogin(endpoint ForceEndpoint, username string, password string) (creds ForceSession, err error)
func GetAccessAuthorization ¶
func GetAccessAuthorization(code, redirect_uri, client_id, client_secret, endpointURL string) (result ForceSession, err error)
func GetServerAuthorization ¶
func GetServerAuthorization(orgID, clientID, userMail, authURL, endpointURL string) (result ForceSession, err error)
GetServerAuthorization func
func (*ForceSession) SessionName ¶
func (creds *ForceSession) SessionName() string
type ForceSobject ¶
type ForceSobject map[string]interface{}
type ForceSobjectFields ¶
type ForceSobjectFields []interface{}
func (ForceSobjectFields) Len ¶
func (f ForceSobjectFields) Len() int
func (ForceSobjectFields) Less ¶
func (f ForceSobjectFields) Less(i, j int) bool
func (ForceSobjectFields) Swap ¶
func (f ForceSobjectFields) Swap(i, j int)
type ForceSobjectsResult ¶
type ForceSobjectsResult struct { Encoding string MaxBatchSize int Sobjects []ForceSobject }
type GenericForceError ¶
type JobInfo ¶
type JobInfo struct { XMLName xml.Name `xml:"http://www.force.com/2009/06/asyncapi/dataload jobInfo"` Id string `xml:"id,omitempty"` Operation string `xml:"operation,omitempty"` Object string `xml:"object,omitempty"` ExternalIdFieldName string `xml:"externalIdFieldName,omitempty"` CreatedById string `xml:"createdById,omitempty"` CreatedDate string `xml:"createdDate,omitempty"` SystemModStamp string `xml:"systemModstamp,omitempty"` State string `xml:"state,omitempty"` ConcurrencyMode string `xml:"concurrencyMode,omitempty"` ContentType string `xml:"contentType,omitempty"` NumberBatchesQueued int `xml:"numberBatchesQueued,omitempty"` NumberBatchesInProgress int `xml:"numberBatchesInProgress,omitempty"` NumberBatchesCompleted int `xml:"numberBatchesCompleted,omitempty"` NumberBatchesFailed int `xml:"numberBatchesFailed,omitempty"` NumberBatchesTotal int `xml:"numberBatchesTotal,omitempty"` NumberRecordsProcessed int `xml:"numberRecordsProcessed,omitempty"` NumberRetries int `xml:"numberRetries,omitempty"` ApiVersion string `xml:"apiVersion,omitempty"` NumberRecordsFailed int `xml:"numberRecordsFailed,omitempty"` TotalProcessingTime int `xml:"totalProcessingTime,omitempty"` ApiActiveProcessingTime int `xml:"apiActiveProcessingTime,omitempty"` ApexProcessingTime int `xml:"apexProcessingTime,omitempty"` }
type JobInfoV2 ¶
type JobInfoV2 struct { ID string `json:"id,omitempty"` ApiVersion float32 `json:"apiVersion,omitempty"` ColumnDelimiter string `json:"columnDelimiter,omitempty"` ConcurrencyMode string `json:"concurrencyMode,omitempty"` ContentType string `json:"contentType,omitempty"` ContentUrl string `json:"contentUrl,omitempty"` CreatedById string `json:"createdById,omitempty"` CreatedDate string `json:"createdDate,omitempty"` ErrorMessage string `json:"errorMessage,omitempty"` ExternalIdFieldName string `json:"externalIdFieldName,omitempty"` JobType string `json:"jobType,omitempty"` LineEnding string `json:"lineEnding,omitempty"` NumberRecordsProcessed int64 `json:"numberRecordsProcessed,omitempty"` NumberRecordsFailed int64 `json:"numberRecordsFailed,omitempty"` Object string `json:"object,omitempty"` Operation string `json:"operation,omitempty"` State string `json:"state,omitempty"` StateMessage interface{} `json:"stateMessage,omitempty"` SystemModStamp string `json:"systemModstamp,omitempty"` }
type LoginFault ¶
type MetadataDescribeResult ¶
type MetadataDescribeResult struct { NamespacePrefix string `xml:"organizationNamespace"` PartialSaveAllowed bool `xml:"partialSaveAllowed"` TestRequired bool `xml:"testRequired"` MetadataObjects []DescribeMetadataObject `xml:"metadataObjects"` }
type OAuthError ¶
type QueryOptions ¶
type RunTestResult ¶
type RunTestResult struct { NumberOfFailures int `xml:"numFailures"` NumberOfTestsRun int `xml:"numTestsRun"` TotalTime float32 `xml:"totalTime"` TestFailures []TestFailure `xml:"failures"` TestSuccesses []TestSuccess `xml:"successes"` CodeCoverageWarnings []CodeCoverageWarning `xml:"codeCoverageWarnings"` }
type SelectStruct ¶
type SessionOptions ¶
type SessionOptions struct { ApiVersion string Alias string RefreshMethod RefreshMethod }
type SoapFault ¶
type SoapFault struct { FaultCode string `xml:"Body>Fault>faultcode"` FaultString string `xml:"Body>Fault>faultstring"` Detail LoginFault `xml:"Body>Fault>detail>LoginFault"` }
type TestFailure ¶
type TestSuccess ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.