Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrJobNotFound = errors.New("job not found")
Functions ¶
This section is empty.
Types ¶
type GitHubAdapter ¶
type GitHubAdapter interface {
DownloadContent(ctx context.Context, owner, repo, path, ref string) (string, error)
}
func NewGitHubAdapter ¶
func NewGitHubAdapter(conf config.GitHubAppConfig) (GitHubAdapter, error)
type JobsAdapter ¶
type JobsAdapter interface { GetJob(ctx context.Context, name string) (*run.Job, error) CreateJob(ctx context.Context, job *run.Job) (*run.Job, error) UpdateJob(ctx context.Context, name string, job *run.Job) (*run.Job, error) StartJob(ctx context.Context, name string) (*run.Execution, error) WaitJobReady(ctx context.Context, name string) (bool, error) }
func NewJobsAdapter ¶
func NewJobsAdapter(ctx context.Context, project, region string) (JobsAdapter, error)
type MetadataClient ¶
type MetadataClient struct {
// contains filtered or unexported fields
}
func NewMetadataClient ¶
func NewMetadataClient() (*MetadataClient, error)
Click to show internal directories.
Click to hide internal directories.