Documentation ¶
Index ¶
- Constants
- func CheckSnapshotDiff(left model.Snapshot, right model.Snapshot, diffType DiffType) model.Snapshot
- func CheckSnapshotDiffV2(left model.Snapshot, right model.Snapshot, diffType DiffTypeV2) model.DiffResult
- func FetchPayloadFromGraphQLEndpoint(url string, token string, domainId string, environment string) (string, error)
- func FormatJSON(jsonString string) string
- func GenerateBearerToken(apiKey string, subject string) (string, error)
- func GetEnv(key string) string
- func InitEnv()
- func MergeResults(diffResults []model.DiffResult) model.DiffResult
- func NewJsonStringFromSnapshot(snapshot model.Snapshot) string
- func NewJsonStringFromSnapshotV2(snapshot model.DiffResult) string
- func NewSnapshotFromJson(jsonData []byte) model.Snapshot
- func ReadJsonFromFile(path string) string
- type DiffResult
- type DiffType
- type DiffTypeV2
- type GoGitService
- type GraphQLRequest
Constants ¶
View Source
const ( NEWV2 DiffTypeV2 = "NEW" CHANGEDV2 DiffTypeV2 = "CHANGED" DELETEDV2 DiffTypeV2 = "DELETED" GROUP DiffResult = "GROUP" CONFIG DiffResult = "CONFIG" STRATEGY DiffResult = "STRATEGY" STRATEGY_VALUE DiffResult = "STRATEGY_VALUE" COMPONENT DiffResult = "COMPONENT" )
Variables ¶
This section is empty.
Functions ¶
func CheckSnapshotDiff ¶
func CheckSnapshotDiffV2 ¶
func CheckSnapshotDiffV2(left model.Snapshot, right model.Snapshot, diffType DiffTypeV2) model.DiffResult
func FormatJSON ¶
func MergeResults ¶
func MergeResults(diffResults []model.DiffResult) model.DiffResult
func NewJsonStringFromSnapshotV2 ¶
func NewJsonStringFromSnapshotV2(snapshot model.DiffResult) string
func NewSnapshotFromJson ¶
func ReadJsonFromFile ¶
Types ¶
type DiffResult ¶
type DiffResult string
type DiffTypeV2 ¶
type DiffTypeV2 string
type GoGitService ¶
type GoGitService struct {
// contains filtered or unexported fields
}
func (*GoGitService) GetFileContent ¶
func (gs *GoGitService) GetFileContent(filePath string) (string, error)
func (*GoGitService) GetLastCommitDate ¶
func (gs *GoGitService) GetLastCommitDate() (time.Time, error)
func (*GoGitService) GetLastCommitHash ¶
func (gs *GoGitService) GetLastCommitHash() (string, error)
type GraphQLRequest ¶
type GraphQLRequest struct {
Query string `json:"query"`
}
Click to show internal directories.
Click to hide internal directories.