Documentation
¶
Index ¶
- type FsdbClient
- func (fc *FsdbClient) GetDirForType(sType string) (string, error)
- func (fc *FsdbClient) GetFilenameForSfidAndType(sSfid string, sType string) string
- func (fc *FsdbClient) GetPathForSfidAndType(sSfid string, sType string) (string, error)
- func (fc *FsdbClient) GetSobjectForSfidAndType(sSfidTry string, sType string) (SobjectFsdb, error)
- func (fc *FsdbClient) GetSobjectForSfidAndTypeFromLocal(sSfidTry string, sType string) (SobjectFsdb, error)
- func (fc *FsdbClient) GetSobjectForSfidAndTypeFromRemote(sSfidTry string, sType string) (SobjectFsdb, error)
- func (fc *FsdbClient) WriteSobjectFsdb(sSfid string, sType string, sobjectFsdb SobjectFsdb) error
- type FsdbPathUtil
- func (fsdb *FsdbPathUtil) GetDirForID(id string, source string, format string) (string, error)
- func (fsdb *FsdbPathUtil) GetFileForID(id string, format string) string
- func (fsdb *FsdbPathUtil) GetPathForID(id string, source string, format string) (string, error)
- func (fsdb *FsdbPathUtil) GetValidPathForID(id string, source string, format string) (string, error)
- type RestClient
- func (cl *RestClient) GetAccessToken() (string, error)
- func (cl *RestClient) GetSobjectResponseForSfidAndType(sSfid string, sType string) (*http.Response, error)
- func (cl *RestClient) GetSobjectURLForSfidAndType(sSfid string, sType string) string
- func (cl *RestClient) GetSoqlResponse(sSoql string) (string, error)
- func (cl *RestClient) LoadToken() error
- type SalesforceClientConfig
- type SalesforceClientConfigGeneral
- type SalesforceClientConfigToken
- type SalesforceTokenResponse
- type SobjectFsdb
- type SobjectFsdbMeta
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FsdbClient ¶
type FsdbClient struct {
Config SalesforceClientConfig
RestClient RestClient
}
func NewFsdbClient ¶
func NewFsdbClient(cfg SalesforceClientConfig) FsdbClient
func (*FsdbClient) GetDirForType ¶
func (fc *FsdbClient) GetDirForType(sType string) (string, error)
func (*FsdbClient) GetFilenameForSfidAndType ¶
func (fc *FsdbClient) GetFilenameForSfidAndType(sSfid string, sType string) string
func (*FsdbClient) GetPathForSfidAndType ¶
func (fc *FsdbClient) GetPathForSfidAndType(sSfid string, sType string) (string, error)
func (*FsdbClient) GetSobjectForSfidAndType ¶
func (fc *FsdbClient) GetSobjectForSfidAndType(sSfidTry string, sType string) (SobjectFsdb, error)
func (*FsdbClient) GetSobjectForSfidAndTypeFromLocal ¶
func (fc *FsdbClient) GetSobjectForSfidAndTypeFromLocal(sSfidTry string, sType string) (SobjectFsdb, error)
func (*FsdbClient) GetSobjectForSfidAndTypeFromRemote ¶
func (fc *FsdbClient) GetSobjectForSfidAndTypeFromRemote(sSfidTry string, sType string) (SobjectFsdb, error)
func (*FsdbClient) WriteSobjectFsdb ¶
func (fc *FsdbClient) WriteSobjectFsdb(sSfid string, sType string, sobjectFsdb SobjectFsdb) error
type FsdbPathUtil ¶
type FsdbPathUtil struct {
BaseDir string
SObjectsInfo sobjects.SObjectsInfo
}
func NewFsdbPathUtil ¶
func NewFsdbPathUtil(baseDir string) FsdbPathUtil
func (*FsdbPathUtil) GetDirForID ¶ added in v0.2.0
func (*FsdbPathUtil) GetFileForID ¶ added in v0.2.0
func (fsdb *FsdbPathUtil) GetFileForID(id string, format string) string
func (*FsdbPathUtil) GetPathForID ¶ added in v0.2.0
func (*FsdbPathUtil) GetValidPathForID ¶ added in v0.2.0
type RestClient ¶
type RestClient struct {
Config SalesforceClientConfig
HTTPHeaders map[string]string
TokenResponse SalesforceTokenResponse
}
func NewRestClient ¶
func NewRestClient(cfg SalesforceClientConfig) RestClient
func (*RestClient) GetAccessToken ¶
func (cl *RestClient) GetAccessToken() (string, error)
func (*RestClient) GetSobjectResponseForSfidAndType ¶
func (*RestClient) GetSobjectURLForSfidAndType ¶ added in v0.2.0
func (cl *RestClient) GetSobjectURLForSfidAndType(sSfid string, sType string) string
func (*RestClient) GetSoqlResponse ¶
func (cl *RestClient) GetSoqlResponse(sSoql string) (string, error)
func (*RestClient) LoadToken ¶
func (cl *RestClient) LoadToken() error
type SalesforceClientConfig ¶
type SalesforceClientConfig struct {
ConfigGeneral SalesforceClientConfigGeneral
ConfigToken SalesforceClientConfigToken
}
type SalesforceClientConfigToken ¶
type SalesforceClientConfigToken struct {
TokenURL string
GrantType string
ClientID string
ClientSecret string
Username string
Password string
URLValues url.Values
}
func (*SalesforceClientConfigToken) Inflate ¶
func (ct *SalesforceClientConfigToken) Inflate()
type SalesforceTokenResponse ¶
type SobjectFsdb ¶
type SobjectFsdb struct {
Meta SobjectFsdbMeta
Data map[string]interface{}
}
func NewSobjectFsdb ¶
func NewSobjectFsdb() SobjectFsdb
func NewSobjectFsdbForResponse ¶
func NewSobjectFsdbForResponse(res *http.Response) (SobjectFsdb, error)
func (*SobjectFsdb) LoadResponse ¶
func (so *SobjectFsdb) LoadResponse(res *http.Response) error
func (*SobjectFsdb) SetEpochRetrievedSource ¶
func (so *SobjectFsdb) SetEpochRetrievedSource()
type SobjectFsdbMeta ¶
Click to show internal directories.
Click to hide internal directories.