Documentation ¶
Index ¶
- Variables
- func IsTransient(err error) bool
- type ApiClient
- func (c ApiClient) GetCodeReferenceRepositoryBranches(repoName string) ([]BranchRep, error)
- func (c ApiClient) GetFlagKeyList(projKey string) ([]string, error)
- func (c ApiClient) MaybeUpsertCodeReferenceRepository(repo RepoParams) error
- func (c ApiClient) PostDeleteBranchesTask(repoName string, branches []string) error
- func (c ApiClient) PostExtinctionEvents(extinctions []ExtinctionRep, repoName, branchName string) error
- func (c ApiClient) PutCodeReferenceBranch(branch BranchRep, repoName string) error
- type ApiOptions
- type BranchCollection
- type BranchRep
- func (b BranchRep) CountAll() map[string]int64
- func (b BranchRep) CountByProjectAndFlag(matcher [][]string, projects []string) map[string]map[string]int64
- func (b BranchRep) PrintReferenceCountTable()
- func (b BranchRep) TotalHunkCount() int
- func (b BranchRep) WriteToCSV(outDir, projKey, repo, sha string) (path string, err error)
- type ConfigurationError
- type ExtinctionRep
- type HunkRep
- type ReferenceHunksRep
- type RepoParams
- type RepoRep
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NotFoundErr = errors.New("not found") ConflictErr = errors.New("conflict") RateLimitExceededErr = errors.New("rate limit exceeded") InternalServiceErr = errors.New("internal service error") BranchUpdateSequenceIdConflictErr = errors.New("updateSequenceId conflict") RepositoryDisabledErr = newConfigurationError("repository is disabled") EntityTooLargeErr = newConfigurationError("entity too large") )
Functions ¶
func IsTransient ¶
IsTransient returns true if the error returned by the LaunchDarkly API is either unexpected, or unable to be resolved by the user.
Types ¶
type ApiClient ¶
type ApiClient struct { Options ApiOptions // contains filtered or unexported fields }
func InitApiClient ¶
func InitApiClient(options ApiOptions) ApiClient
func (ApiClient) GetCodeReferenceRepositoryBranches ¶
func (ApiClient) GetFlagKeyList ¶
func (ApiClient) MaybeUpsertCodeReferenceRepository ¶
func (c ApiClient) MaybeUpsertCodeReferenceRepository(repo RepoParams) error
func (ApiClient) PostDeleteBranchesTask ¶
func (ApiClient) PostExtinctionEvents ¶
func (c ApiClient) PostExtinctionEvents(extinctions []ExtinctionRep, repoName, branchName string) error
type ApiOptions ¶
type BranchCollection ¶
type BranchCollection struct {
Items []BranchRep `json:"items"`
}
type BranchRep ¶
type BranchRep struct { Name string `json:"name"` Head string `json:"head"` UpdateSequenceId *int `json:"updateSequenceId,omitempty"` SyncTime int64 `json:"syncTime"` References []ReferenceHunksRep `json:"references,omitempty"` CommitTime int64 `json:"commitTime,omitempty"` }
func (BranchRep) CountByProjectAndFlag ¶
func (BranchRep) PrintReferenceCountTable ¶
func (b BranchRep) PrintReferenceCountTable()
func (BranchRep) TotalHunkCount ¶
type ConfigurationError ¶
type ConfigurationError struct {
// contains filtered or unexported fields
}
type ExtinctionRep ¶
type HunkRep ¶
type ReferenceHunksRep ¶
type RepoParams ¶
Click to show internal directories.
Click to hide internal directories.