Versions in this module Expand all Collapse all v1 v1.0.0 Oct 6, 2022 Changes in this version + const DefaultAPIVersion + const DefaultClientID + const DefaultRedirectURI + const DefaultURL + const ScratchPackageXML + const ScratchQuoteSettingsMeta + const ScratchSecuritySettingsMetaTpl + var ErrAuthentication = errors.New("authentication failure") + var ErrFailure = errors.New("general failure") + func ParseSalesforceError(statusCode int, responseBody []byte) (err error) + type BearerTokenResponse struct + AccessToken string + InstanceURL string + type Client struct + func NewClient(url, clientID, apiVersion string) *Client + func (c *Client) MetaDeploy(zip []byte, testLevel string) (*MetaDeployResult, error) + func (client *Client) ApexREST(method, path string, requestBody io.Reader) ([]byte, error) + func (client *Client) CreateScratch(params CreateScratchParams) (*CreateScratchResult, error) + func (client *Client) DescribeGlobal() (*SObjectMeta, 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) HasScratch(name string) (bool, string, error) + func (client *Client) LoginPassword(username, password, token string) error + func (client *Client) LoginWithAuthCode(loginURL string, code string) error + func (client *Client) Query(q string) (*QueryResult, error) + func (client *Client) RemoveScratch(name string) (*RemoveScratchResult, 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 CreateScratchParams struct + AdminEmail string + CountryName string + Description string + Features string + Name string + Namespace string + Phone string + Settings ScratchSettings + Username string + type CreateScratchResult struct + AuthCode string + ExceptionMessage interface{} + ExceptionStackTrace interface{} + ExpiresAt string + Features string + LoginURL string + Namespace string + Pass string + Success bool + User string + type ExecuteAnonymousResult struct + Column int + CompileProblem interface{} + Compiled bool + ExceptionMessage interface{} + ExceptionStackTrace interface{} + Line int + Success bool + type MetaDeployResponse struct + DeployResult MetaDeployResponseResult + ID string + type MetaDeployResponseResult struct + Details interface{} + Done bool + ErrorMessage string + ErrorStatusCode string + ID string + Status string + Success bool + type MetaDeployResult struct + Details interface{} + ErrorMessage string + ErrorStatusCode string + Success bool + type QueryResult struct + Done bool + NextRecordsURL string + Records []SObject + TotalSize int + type RemoveScratchResult struct + ExceptionMessage interface{} + ExceptionStackTrace interface{} + Success bool + 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) 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 + type SObjectAttributes struct + Type string + URL string + type SObjectMeta map[string]interface + type ScratchSettings struct + EnableAuditFieldsInactiveOwner bool