Documentation
¶
Index ¶
- func IsSupportedArch(arch params.OSArch) bool
- func IsSupportedOSType(osType params.OSType) bool
- type EnterprisePoolManager
- type HookTargetType
- type OrgPoolManager
- type PoolManagerController
- type RepoPoolManager
- type Runner
- func (r *Runner) AddInstanceStatusMessage(ctx context.Context, param params.InstanceUpdateMessage) error
- func (r *Runner) CreateEnterprise(ctx context.Context, param params.CreateEnterpriseParams) (enterprise params.Enterprise, err error)
- func (r *Runner) CreateEnterprisePool(ctx context.Context, enterpriseID string, param params.CreatePoolParams) (params.Pool, error)
- func (r *Runner) CreateOrgPool(ctx context.Context, orgID string, param params.CreatePoolParams) (params.Pool, error)
- func (r *Runner) CreateOrganization(ctx context.Context, param params.CreateOrgParams) (org params.Organization, err error)
- func (r *Runner) CreateRepoPool(ctx context.Context, repoID string, param params.CreatePoolParams) (params.Pool, error)
- func (r *Runner) CreateRepository(ctx context.Context, param params.CreateRepoParams) (repo params.Repository, err error)
- func (r *Runner) DeleteEnterprise(ctx context.Context, enterpriseID string) error
- func (r *Runner) DeleteEnterprisePool(ctx context.Context, enterpriseID, poolID string) error
- func (r *Runner) DeleteOrgPool(ctx context.Context, orgID, poolID string) error
- func (r *Runner) DeleteOrganization(ctx context.Context, orgID string) error
- func (r *Runner) DeletePoolByID(ctx context.Context, poolID string) error
- func (r *Runner) DeleteRepoPool(ctx context.Context, repoID, poolID string) error
- func (r *Runner) DeleteRepository(ctx context.Context, repoID string) error
- func (r *Runner) DispatchWorkflowJob(hookTargetType, signature string, jobData []byte) error
- func (r *Runner) ForceDeleteRunner(ctx context.Context, instanceName string) error
- func (r *Runner) GetControllerInfo(ctx context.Context) (params.ControllerInfo, error)
- func (r *Runner) GetEnterpriseByID(ctx context.Context, enterpriseID string) (params.Enterprise, error)
- func (r *Runner) GetEnterprisePoolByID(ctx context.Context, enterpriseID, poolID string) (params.Pool, error)
- func (r *Runner) GetInstance(ctx context.Context, instanceName string) (params.Instance, error)
- func (r *Runner) GetInstanceGithubRegistrationToken(ctx context.Context) (string, error)
- func (r *Runner) GetOrgPoolByID(ctx context.Context, orgID, poolID string) (params.Pool, error)
- func (r *Runner) GetOrganizationByID(ctx context.Context, orgID string) (params.Organization, error)
- func (r *Runner) GetPoolByID(ctx context.Context, poolID string) (params.Pool, error)
- func (r *Runner) GetRepoPoolByID(ctx context.Context, repoID, poolID string) (params.Pool, error)
- func (r *Runner) GetRepositoryByID(ctx context.Context, repoID string) (params.Repository, error)
- func (r *Runner) ListAllInstances(ctx context.Context) ([]params.Instance, error)
- func (r *Runner) ListAllJobs(ctx context.Context) ([]params.Job, error)
- func (r *Runner) ListAllPools(ctx context.Context) ([]params.Pool, error)
- func (r *Runner) ListCredentials(ctx context.Context) ([]params.GithubCredentials, error)
- func (r *Runner) ListEnterpriseInstances(ctx context.Context, enterpriseID string) ([]params.Instance, error)
- func (r *Runner) ListEnterprisePools(ctx context.Context, enterpriseID string) ([]params.Pool, error)
- func (r *Runner) ListEnterprises(ctx context.Context) ([]params.Enterprise, error)
- func (r *Runner) ListOrgInstances(ctx context.Context, orgID string) ([]params.Instance, error)
- func (r *Runner) ListOrgPools(ctx context.Context, orgID string) ([]params.Pool, error)
- func (r *Runner) ListOrganizations(ctx context.Context) ([]params.Organization, error)
- func (r *Runner) ListPoolInstances(ctx context.Context, poolID string) ([]params.Instance, error)
- func (r *Runner) ListProviders(ctx context.Context) ([]params.Provider, error)
- func (r *Runner) ListRepoInstances(ctx context.Context, repoID string) ([]params.Instance, error)
- func (r *Runner) ListRepoPools(ctx context.Context, repoID string) ([]params.Pool, error)
- func (r *Runner) ListRepositories(ctx context.Context) ([]params.Repository, error)
- func (r *Runner) Start() error
- func (r *Runner) Stop() error
- func (r *Runner) UpdateEnterprise(ctx context.Context, enterpriseID string, param params.UpdateEntityParams) (params.Enterprise, error)
- func (r *Runner) UpdateEnterprisePool(ctx context.Context, enterpriseID, poolID string, ...) (params.Pool, error)
- func (r *Runner) UpdateOrgPool(ctx context.Context, orgID, poolID string, param params.UpdatePoolParams) (params.Pool, error)
- func (r *Runner) UpdateOrganization(ctx context.Context, orgID string, param params.UpdateEntityParams) (params.Organization, error)
- func (r *Runner) UpdatePoolByID(ctx context.Context, poolID string, param params.UpdatePoolParams) (params.Pool, error)
- func (r *Runner) UpdateRepoPool(ctx context.Context, repoID, poolID string, param params.UpdatePoolParams) (params.Pool, error)
- func (r *Runner) UpdateRepository(ctx context.Context, repoID string, param params.UpdateEntityParams) (params.Repository, error)
- func (r *Runner) Wait() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsSupportedArch ¶
func IsSupportedOSType ¶
Types ¶
type EnterprisePoolManager ¶
type EnterprisePoolManager interface {
CreateEnterprisePoolManager(ctx context.Context, enterprise params.Enterprise, providers map[string]common.Provider, store dbCommon.Store) (common.PoolManager, error)
UpdateEnterprisePoolManager(ctx context.Context, enterprise params.Enterprise) (common.PoolManager, error)
GetEnterprisePoolManager(enterprise params.Enterprise) (common.PoolManager, error)
DeleteEnterprisePoolManager(enterprise params.Enterprise) error
GetEnterprisePoolManagers() (map[string]common.PoolManager, error)
}
type HookTargetType ¶
type HookTargetType string
const ( RepoHook HookTargetType = "repository" OrganizationHook HookTargetType = "organization" EnterpriseHook HookTargetType = "business" )
type OrgPoolManager ¶
type OrgPoolManager interface {
CreateOrgPoolManager(ctx context.Context, org params.Organization, providers map[string]common.Provider, store dbCommon.Store) (common.PoolManager, error)
UpdateOrgPoolManager(ctx context.Context, org params.Organization) (common.PoolManager, error)
GetOrgPoolManager(org params.Organization) (common.PoolManager, error)
DeleteOrgPoolManager(org params.Organization) error
GetOrgPoolManagers() (map[string]common.PoolManager, error)
}
type PoolManagerController ¶
type PoolManagerController interface {
RepoPoolManager
OrgPoolManager
EnterprisePoolManager
}
type RepoPoolManager ¶
type RepoPoolManager interface {
CreateRepoPoolManager(ctx context.Context, repo params.Repository, providers map[string]common.Provider, store dbCommon.Store) (common.PoolManager, error)
UpdateRepoPoolManager(ctx context.Context, repo params.Repository) (common.PoolManager, error)
GetRepoPoolManager(repo params.Repository) (common.PoolManager, error)
DeleteRepoPoolManager(repo params.Repository) error
GetRepoPoolManagers() (map[string]common.PoolManager, error)
}
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
func (*Runner) AddInstanceStatusMessage ¶
func (*Runner) CreateEnterprise ¶
func (r *Runner) CreateEnterprise(ctx context.Context, param params.CreateEnterpriseParams) (enterprise params.Enterprise, err error)
func (*Runner) CreateEnterprisePool ¶
func (*Runner) CreateOrgPool ¶
func (*Runner) CreateOrganization ¶
func (r *Runner) CreateOrganization(ctx context.Context, param params.CreateOrgParams) (org params.Organization, err error)
func (*Runner) CreateRepoPool ¶
func (*Runner) CreateRepository ¶
func (r *Runner) CreateRepository(ctx context.Context, param params.CreateRepoParams) (repo params.Repository, err error)
func (*Runner) DeleteEnterprise ¶
func (*Runner) DeleteEnterprisePool ¶
func (*Runner) DeleteOrgPool ¶
func (*Runner) DeleteOrganization ¶
func (*Runner) DeletePoolByID ¶
func (*Runner) DeleteRepoPool ¶
func (*Runner) DeleteRepository ¶
func (*Runner) DispatchWorkflowJob ¶
func (*Runner) ForceDeleteRunner ¶
func (*Runner) GetControllerInfo ¶
GetControllerInfo returns the controller id and the hostname. This data might be used in metrics and logging.
func (*Runner) GetEnterpriseByID ¶
func (*Runner) GetEnterprisePoolByID ¶
func (*Runner) GetInstance ¶
func (*Runner) GetInstanceGithubRegistrationToken ¶
func (*Runner) GetOrgPoolByID ¶
func (*Runner) GetOrganizationByID ¶
func (*Runner) GetPoolByID ¶
func (*Runner) GetRepoPoolByID ¶
func (*Runner) GetRepositoryByID ¶
func (*Runner) ListAllInstances ¶
func (*Runner) ListAllJobs ¶ added in v0.1.2
func (*Runner) ListAllPools ¶
func (*Runner) ListCredentials ¶
func (*Runner) ListEnterpriseInstances ¶
func (*Runner) ListEnterprisePools ¶
func (*Runner) ListEnterprises ¶
func (*Runner) ListOrgInstances ¶
func (*Runner) ListOrgPools ¶
func (*Runner) ListOrganizations ¶
func (*Runner) ListPoolInstances ¶
func (*Runner) ListProviders ¶
func (*Runner) ListRepoInstances ¶
func (*Runner) ListRepoPools ¶
func (*Runner) ListRepositories ¶
func (*Runner) UpdateEnterprise ¶
func (r *Runner) UpdateEnterprise(ctx context.Context, enterpriseID string, param params.UpdateEntityParams) (params.Enterprise, error)
func (*Runner) UpdateEnterprisePool ¶
func (*Runner) UpdateOrgPool ¶
func (*Runner) UpdateOrganization ¶
func (r *Runner) UpdateOrganization(ctx context.Context, orgID string, param params.UpdateEntityParams) (params.Organization, error)
func (*Runner) UpdatePoolByID ¶
func (*Runner) UpdateRepoPool ¶
func (*Runner) UpdateRepository ¶
func (r *Runner) UpdateRepository(ctx context.Context, repoID string, param params.UpdateEntityParams) (params.Repository, error)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.