Versions in this module Expand all Collapse all v1 v1.2.9 Apr 12, 2021 v1.2.8 Apr 12, 2021 v0 v0.2.8 Mar 30, 2021 Changes in this version + type CiPipelineMaterial struct + Active bool + GitCommit GitCommit + GitMaterialId int + Id int + Type SourceType + Value string + type ClientRequest struct + Method string + Path string + RequestBody interface{} + ResponseBody interface{} + type CommitMetadataRequest struct + GitHash string + GitTag string + PipelineMaterialId int + type FetchScmChangesRequest struct + From string + PipelineMaterialId int + To string + type GitCommit struct + Author string + Changes []string + Commit string + Date time.Time + Message string + type GitMaterial struct + CheckoutLocation string + CheckoutMsgAny string + CheckoutStatus bool + Deleted bool + GitProviderId int + Id int + Name string + Url string + type GitProvider struct + AccessToken string + Active bool + AuthMode repository.AuthMode + Id int + Name string + Password string + SshKey string + Url string + UserName string + type GitSensorApiError struct + Code string + HttpStatusCode int + InternalMessage string + UserDetailMessage string + UserMessage string + type GitSensorClient interface + AddRepo func(material []*GitMaterial) (materialRes []*GitMaterial, err error) + FetchChanges func(changeRequest *FetchScmChangesRequest) (materialChangeResp *MaterialChangeResp, err error) + GetCommitMetadata func(commitMetadataRequest *CommitMetadataRequest) (*GitCommit, error) + GetHeadForPipelineMaterials func(req *HeadRequest) (material []*CiPipelineMaterial, err error) + RefreshGitMaterial func(req *RefreshGitMaterialRequest) (refreshRes *RefreshGitMaterialResponse, err error) + SaveGitProvider func(provider *GitProvider) (providerRes *GitProvider, err error) + SavePipelineMaterial func(material []*CiPipelineMaterial) (materialRes []*CiPipelineMaterial, err error) + UpdateRepo func(material *GitMaterial) (materialRes *GitMaterial, err error) + type GitSensorClientImpl struct + func NewGitSensorSession(config *GitSensorConfig, logger *zap.SugaredLogger) (session *GitSensorClientImpl, err error) + func (session GitSensorClientImpl) AddRepo(material []*GitMaterial) (materialRes []*GitMaterial, err error) + func (session GitSensorClientImpl) FetchChanges(changeRequest *FetchScmChangesRequest) (materialChangeResp *MaterialChangeResp, err error) + func (session GitSensorClientImpl) GetCommitMetadata(commitMetadataRequest *CommitMetadataRequest) (*GitCommit, error) + func (session GitSensorClientImpl) GetHeadForPipelineMaterials(req *HeadRequest) (material []*CiPipelineMaterial, err error) + func (session GitSensorClientImpl) RefreshGitMaterial(req *RefreshGitMaterialRequest) (refreshRes *RefreshGitMaterialResponse, err error) + func (session GitSensorClientImpl) SaveGitProvider(provider *GitProvider) (providerRes *GitProvider, err error) + func (session GitSensorClientImpl) SavePipelineMaterial(material []*CiPipelineMaterial) (materialRes []*CiPipelineMaterial, err error) + func (session GitSensorClientImpl) UpdateRepo(material *GitMaterial) (materialRes *GitMaterial, err error) + type GitSensorConfig struct + Timeout int + Url string + func GetGitSensorConfig() (*GitSensorConfig, error) + type GitSensorResponse struct + Code int + Errors []*GitSensorApiError + Result json.RawMessage + Status string + type HeadRequest struct + MaterialIds []int + type MaterialChangeResp struct + BranchErrorMsg string + Commits []*GitCommit + IsBranchError bool + IsRepoError bool + LastFetchTime time.Time + RepoErrorMsg string + type RefreshGitMaterialRequest struct + GitMaterialId int + type RefreshGitMaterialResponse struct + ErrorMsg string + LastFetchTime time.Time + Message string + type SourceType string + type StatusCode int + func (code StatusCode) IsSuccess() bool