domain

package
v0.1.0-0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 8, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionConfig

type ActionConfig struct {
	Type  string
	Param map[string]interface{}
}

type Fixable

type Fixable interface {
	Fix(ctx context.Context, param *ParamAction)
}

type OrgFixable

type OrgFixable interface {
	Fix(ctx context.Context, param *ParamOrgAction)
}

type OrgPolicy

type OrgPolicy interface {
	Match(ctx context.Context, org Organization) (bool, error)
	Action() ActionConfig
	DataDogMetric(org Organization, now *float64) datadog.Metric
}

type Organization

type Organization struct {
	GitHub *github.Organization
	Name   string
}

type ParamAction

type ParamAction struct {
	Repo             Repository
	UpdatedRepo      *github.Repository
	Actions          []ActionConfig
	DataDogMetrics   []datadog.Metric
	TimestampFloat64 float64
	TimestampInt     int
	IsEdited         bool
	DryRun           bool
}

type ParamOrgAction

type ParamOrgAction struct {
	Org              Organization
	UpdatedOrg       *github.Organization
	Actions          []ActionConfig
	DataDogMetrics   []datadog.Metric
	TimestampFloat64 float64
	TimestampInt     int
	IsEdited         bool
	DryRun           bool
}

type RepoPolicy

type RepoPolicy interface {
	Match(ctx context.Context, repo Repository) (bool, error)
	Action() ActionConfig
	DataDogMetric(repo Repository, now *float64) datadog.Metric
}

type Repository

type Repository struct {
	GitHub *github.Repository
	Owner  string
	Name   string
}

type UseDataDogClient

type UseDataDogClient interface {
	SetDataDogClient(*datadog.Client)
}

type UseGitHubClient

type UseGitHubClient interface {
	SetGitHubClient(*github.Client)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL