Versions in this module Expand all Collapse all v0 v0.0.1 Oct 26, 2022 Changes in this version + const DefaultAPIVersion + const DefaultClientID + const DefaultURL + var ErrAuthentication = errors.New("authentication failure") + var ErrFailure = errors.New("general failure") + func ParseSalesforceError(statusCode int, responseBody []byte) (err error) + type Client struct + func NewClient(url, clientID, apiVersion string) *Client + func (client *Client) ApexREST(method, path string, requestBody io.Reader) ([]byte, error) + func (client *Client) DescribeGlobal() (*SObjectMeta, error) + func (client *Client) DownloadAttachment(attachmentId string, filepath string) error + func (client *Client) DownloadFile(contentVersionID string, filepath string) error + func (client *Client) ExecuteAnonymous(apexBody string) (*ExecuteAnonymousResult, error) + func (client *Client) GetLoc() (loc string) + func (client *Client) GetSid() (sid string) + func (client *Client) LoginPassword(username, password, token string) error + func (client *Client) Query(q string) (*QueryResult, error) + func (client *Client) QueryWithToken(q string, t Token) (*QueryResult, error) + func (client *Client) SObject(typeName ...string) *SObject + func (client *Client) SetHttpClient(c *http.Client) + func (client *Client) SetSidLoc(sid string, loc string) + func (client *Client) Tooling() *Client + func (client *Client) UnTooling() + type ExecuteAnonymousResult struct + Column int + CompileProblem interface{} + Compiled bool + ExceptionMessage interface{} + ExceptionStackTrace interface{} + Line int + Success bool + type QueryResult struct + Done bool + NextRecordsURL string + Records []SObject + TotalSize int + type SObject map[string]interface + func (obj *SObject) AttributesField() *SObjectAttributes + func (obj *SObject) Create() *SObject + func (obj *SObject) Delete(id ...string) error + func (obj *SObject) Describe() *SObjectMeta + func (obj *SObject) ExternalID() string + func (obj *SObject) ExternalIDFieldName() string + func (obj *SObject) Get(id ...string) *SObject + func (obj *SObject) ID() string + func (obj *SObject) InterfaceField(key string) interface{} + func (obj *SObject) SObjectField(typeName, key string) *SObject + func (obj *SObject) Set(key string, value interface{}) *SObject + func (obj *SObject) StringField(key string) string + func (obj *SObject) Type() string + func (obj *SObject) Update() *SObject + func (obj *SObject) Upsert() *SObject + type SObjectAttributes struct + Type string + URL string + type SObjectMeta map[string]interface + type SalesforceError struct + ErrorCode string + ErrorMessage string + HttpCode int + Message string + func (err SalesforceError) Error() string + type Token struct + Instance string + Token string