SYMBOL INDEX (505 symbols across 69 files) FILE: api/myshoes/client.go type Client (line 15) | type Client struct method newRequest (line 57) | func (c *Client) newRequest(ctx context.Context, method, spath string,... constant defaultUserAgent (line 24) | defaultUserAgent = "myshoes-sdk-go" function NewClient (line 28) | func NewClient(endpoint string, client *http.Client, logger *log.Logger)... FILE: api/myshoes/http.go function decodeBody (line 12) | func decodeBody(resp *http.Response, out interface{}) error { function decodeErrorBody (line 26) | func decodeErrorBody(resp *http.Response) error { method request (line 36) | func (c *Client) request(req *http.Request, out interface{}) error { FILE: api/myshoes/target.go method CreateTarget (line 14) | func (c *Client) CreateTarget(ctx context.Context, param web.TargetCreat... method GetTarget (line 36) | func (c *Client) GetTarget(ctx context.Context, targetID string) (*web.U... method UpdateTarget (line 53) | func (c *Client) UpdateTarget(ctx context.Context, targetID string, para... method DeleteTarget (line 75) | func (c *Client) DeleteTarget(ctx context.Context, targetID string) error { method ListTarget (line 92) | func (c *Client) ListTarget(ctx context.Context) ([]web.UserTarget, erro... FILE: api/proto.go/myshoes.pb.go constant _ (line 19) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 21) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type ResourceType (line 24) | type ResourceType method Enum (line 67) | func (x ResourceType) Enum() *ResourceType { method String (line 73) | func (x ResourceType) String() string { method Descriptor (line 77) | func (ResourceType) Descriptor() protoreflect.EnumDescriptor { method Type (line 81) | func (ResourceType) Type() protoreflect.EnumType { method Number (line 85) | func (x ResourceType) Number() protoreflect.EnumNumber { method EnumDescriptor (line 90) | func (ResourceType) EnumDescriptor() ([]byte, []int) { constant ResourceType_Unknown (line 27) | ResourceType_Unknown ResourceType = 0 constant ResourceType_Nano (line 28) | ResourceType_Nano ResourceType = 1 constant ResourceType_Micro (line 29) | ResourceType_Micro ResourceType = 2 constant ResourceType_Small (line 30) | ResourceType_Small ResourceType = 3 constant ResourceType_Medium (line 31) | ResourceType_Medium ResourceType = 4 constant ResourceType_Large (line 32) | ResourceType_Large ResourceType = 5 constant ResourceType_XLarge (line 33) | ResourceType_XLarge ResourceType = 6 constant ResourceType_XLarge2 (line 34) | ResourceType_XLarge2 ResourceType = 7 constant ResourceType_XLarge3 (line 35) | ResourceType_XLarge3 ResourceType = 8 constant ResourceType_XLarge4 (line 36) | ResourceType_XLarge4 ResourceType = 9 type AddInstanceRequest (line 94) | type AddInstanceRequest struct method Reset (line 104) | func (x *AddInstanceRequest) Reset() { method String (line 111) | func (x *AddInstanceRequest) String() string { method ProtoMessage (line 115) | func (*AddInstanceRequest) ProtoMessage() {} method ProtoReflect (line 117) | func (x *AddInstanceRequest) ProtoReflect() protoreflect.Message { method Descriptor (line 130) | func (*AddInstanceRequest) Descriptor() ([]byte, []int) { method GetRunnerName (line 134) | func (x *AddInstanceRequest) GetRunnerName() string { method GetSetupScript (line 141) | func (x *AddInstanceRequest) GetSetupScript() string { method GetResourceType (line 148) | func (x *AddInstanceRequest) GetResourceType() ResourceType { method GetLabels (line 155) | func (x *AddInstanceRequest) GetLabels() []string { type AddInstanceResponse (line 162) | type AddInstanceResponse struct method Reset (line 172) | func (x *AddInstanceResponse) Reset() { method String (line 179) | func (x *AddInstanceResponse) String() string { method ProtoMessage (line 183) | func (*AddInstanceResponse) ProtoMessage() {} method ProtoReflect (line 185) | func (x *AddInstanceResponse) ProtoReflect() protoreflect.Message { method Descriptor (line 198) | func (*AddInstanceResponse) Descriptor() ([]byte, []int) { method GetCloudId (line 202) | func (x *AddInstanceResponse) GetCloudId() string { method GetShoesType (line 209) | func (x *AddInstanceResponse) GetShoesType() string { method GetIpAddress (line 216) | func (x *AddInstanceResponse) GetIpAddress() string { method GetResourceType (line 223) | func (x *AddInstanceResponse) GetResourceType() ResourceType { type DeleteInstanceRequest (line 230) | type DeleteInstanceRequest struct method Reset (line 238) | func (x *DeleteInstanceRequest) Reset() { method String (line 245) | func (x *DeleteInstanceRequest) String() string { method ProtoMessage (line 249) | func (*DeleteInstanceRequest) ProtoMessage() {} method ProtoReflect (line 251) | func (x *DeleteInstanceRequest) ProtoReflect() protoreflect.Message { method Descriptor (line 264) | func (*DeleteInstanceRequest) Descriptor() ([]byte, []int) { method GetCloudId (line 268) | func (x *DeleteInstanceRequest) GetCloudId() string { method GetLabels (line 275) | func (x *DeleteInstanceRequest) GetLabels() []string { type DeleteInstanceResponse (line 282) | type DeleteInstanceResponse struct method Reset (line 288) | func (x *DeleteInstanceResponse) Reset() { method String (line 295) | func (x *DeleteInstanceResponse) String() string { method ProtoMessage (line 299) | func (*DeleteInstanceResponse) ProtoMessage() {} method ProtoReflect (line 301) | func (x *DeleteInstanceResponse) ProtoReflect() protoreflect.Message { method Descriptor (line 314) | func (*DeleteInstanceResponse) Descriptor() ([]byte, []int) { constant file_myshoes_proto_rawDesc (line 320) | file_myshoes_proto_rawDesc = "" + function file_myshoes_proto_rawDescGZIP (line 362) | func file_myshoes_proto_rawDescGZIP() []byte { function init (line 392) | func init() { file_myshoes_proto_init() } function file_myshoes_proto_init (line 393) | func file_myshoes_proto_init() { FILE: api/proto.go/myshoes_grpc.pb.go constant _ (line 19) | _ = grpc.SupportPackageIsVersion9 constant Shoes_AddInstance_FullMethodName (line 22) | Shoes_AddInstance_FullMethodName = "/whywaita.myshoes.Shoes/AddInstance" constant Shoes_DeleteInstance_FullMethodName (line 23) | Shoes_DeleteInstance_FullMethodName = "/whywaita.myshoes.Shoes/DeleteIns... type ShoesClient (line 29) | type ShoesClient interface type shoesClient (line 34) | type shoesClient struct method AddInstance (line 42) | func (c *shoesClient) AddInstance(ctx context.Context, in *AddInstance... method DeleteInstance (line 52) | func (c *shoesClient) DeleteInstance(ctx context.Context, in *DeleteIn... function NewShoesClient (line 38) | func NewShoesClient(cc grpc.ClientConnInterface) ShoesClient { type ShoesServer (line 65) | type ShoesServer interface type UnimplementedShoesServer (line 76) | type UnimplementedShoesServer struct method AddInstance (line 78) | func (UnimplementedShoesServer) AddInstance(context.Context, *AddInsta... method DeleteInstance (line 81) | func (UnimplementedShoesServer) DeleteInstance(context.Context, *Delet... method mustEmbedUnimplementedShoesServer (line 84) | func (UnimplementedShoesServer) mustEmbedUnimplementedShoesServer() {} method testEmbeddedByValue (line 85) | func (UnimplementedShoesServer) testEmbeddedByValue() {} type UnsafeShoesServer (line 90) | type UnsafeShoesServer interface function RegisterShoesServer (line 94) | func RegisterShoesServer(s grpc.ServiceRegistrar, srv ShoesServer) { function _Shoes_AddInstance_Handler (line 105) | func _Shoes_AddInstance_Handler(srv interface{}, ctx context.Context, de... function _Shoes_DeleteInstance_Handler (line 123) | func _Shoes_DeleteInstance_Handler(srv interface{}, ctx context.Context,... FILE: cmd/server/cmd.go function init (line 25) | func init() { function main (line 35) | func main() { type myShoes (line 52) | type myShoes struct method Run (line 80) | func (m *myShoes) Run() error { function newShoes (line 59) | func newShoes() (*myShoes, error) { FILE: cmd/shoes-tester/main.go function main (line 23) | func main() { function printUsage (line 48) | func printUsage() { type addFlags (line 59) | type addFlags struct type deleteFlags (line 76) | type deleteFlags struct function runAdd (line 83) | func runAdd(args []string) error { function runDelete (line 177) | func runDelete(args []string) error { function getClientWithPath (line 225) | func getClientWithPath(pluginPath string) (shoes.Client, func(), error) { function generateSetupScript (line 259) | func generateSetupScript(ctx context.Context, flags *addFlags) (string, ... function parseLabels (line 301) | func parseLabels(labels string) []string { FILE: internal/testutils/mysql.go constant schemaDirRelativePathFormat (line 16) | schemaDirRelativePathFormat = "%s/../../pkg/datastore/mysql/%s" function execSchema (line 18) | func execSchema(fpath string) { function createTablesIfNotExist (line 34) | func createTablesIfNotExist() { function truncateTables (line 40) | func truncateTables() { function GetTestDatastore (line 81) | func GetTestDatastore() (datastore.Datastore, func()) { function GetTestDB (line 90) | func GetTestDB() (*sqlx.DB, func()) { FILE: internal/testutils/testutils.go constant mysqlRootPassword (line 18) | mysqlRootPassword = "secret" function IntegrationTestRunner (line 29) | func IntegrationTestRunner(m *testing.M) int { FILE: internal/testutils/web.go function GetTestURL (line 4) | func GetTestURL() string { FILE: internal/util/util.go function CalcRetryTime (line 9) | func CalcRetryTime(count int) time.Duration { FILE: pkg/config/config.go type Conf (line 12) | type Conf struct method IsGHES (line 122) | func (c Conf) IsGHES() bool { type DockerHubCredential (line 37) | type DockerHubCredential struct type GitHubApp (line 43) | type GitHubApp struct constant EnvGitHubAppID (line 52) | EnvGitHubAppID = "GITHUB_APP_ID" constant EnvGitHubAppSecret (line 53) | EnvGitHubAppSecret = "GITHUB_APP_SECRET" constant EnvGitHubAppPrivateKeyBase64 (line 54) | EnvGitHubAppPrivateKeyBase64 = "GITHUB_PRIVATE_KEY_BASE64" constant EnvMySQLHost (line 55) | EnvMySQLHost = "MYSQL_HOST" constant EnvMySQLPort (line 56) | EnvMySQLPort = "MYSQL_PORT" constant EnvMySQLUser (line 57) | EnvMySQLUser = "MYSQL_USER" constant EnvMySQLPassword (line 58) | EnvMySQLPassword = "MYSQL_PASSWORD" constant EnvMySQLDatabase (line 59) | EnvMySQLDatabase = "MYSQL_DATABASE" constant EnvMySQLURL (line 60) | EnvMySQLURL = "MYSQL_URL" constant EnvPort (line 61) | EnvPort = "PORT" constant EnvShoesPluginPath (line 62) | EnvShoesPluginPath = "PLUGIN" constant EnvShoesPluginOutputPath (line 63) | EnvShoesPluginOutputPath = "PLUGIN_OUTPUT" constant EnvRunnerUser (line 64) | EnvRunnerUser = "RUNNER_USER" constant EnvRunnerBaseDirectory (line 65) | EnvRunnerBaseDirectory = "RUNNER_BASE_DIRECTORY" constant EnvDebug (line 66) | EnvDebug = "DEBUG" constant EnvStrict (line 67) | EnvStrict = "STRICT" constant EnvModeWebhookType (line 68) | EnvModeWebhookType = "MODE_WEBHOOK_TYPE" constant EnvMaxConnectionsToBackend (line 69) | EnvMaxConnectionsToBackend = "MAX_CONNECTIONS_TO_BACKEND" constant EnvMaxConcurrencyDeleting (line 70) | EnvMaxConcurrencyDeleting = "MAX_CONCURRENCY_DELETING" constant EnvGitHubURL (line 71) | EnvGitHubURL = "GITHUB_URL" constant EnvRunnerVersion (line 72) | EnvRunnerVersion = "RUNNER_VERSION" constant EnvDockerHubUsername (line 73) | EnvDockerHubUsername = "DOCKER_HUB_USERNAME" constant EnvDockerHubPassword (line 74) | EnvDockerHubPassword = "DOCKER_HUB_PASSWORD" constant EnvProvideDockerHubMetrics (line 75) | EnvProvideDockerHubMetrics = "PROVIDE_DOCKER_HUB_METRICS" type ModeWebhookType (line 79) | type ModeWebhookType method String (line 91) | func (mwt ModeWebhookType) String() string { method Equal (line 106) | func (mwt ModeWebhookType) Equal(in string) bool { constant ModeWebhookTypeUnknown (line 83) | ModeWebhookTypeUnknown ModeWebhookType = iota constant ModeWebhookTypeCheckRun (line 85) | ModeWebhookTypeCheckRun constant ModeWebhookTypeWorkflowJob (line 87) | ModeWebhookTypeWorkflowJob function marshalModeWebhookType (line 110) | func marshalModeWebhookType(in string) ModeWebhookType { FILE: pkg/config/init.go function Load (line 21) | func Load() { function LoadWithDefault (line 34) | func LoadWithDefault() Conf { function LoadGitHubApps (line 162) | func LoadGitHubApps() *GitHubApp { function LoadMySQLURL (line 200) | func LoadMySQLURL() string { function LoadPluginPath (line 219) | func LoadPluginPath() string { function checkBinary (line 236) | func checkBinary(p string) (string, error) { function fetch (line 267) | func fetch(p string) (string, error) { function fetchHTTP (line 288) | func fetchHTTP(u *url.URL) (string, error) { FILE: pkg/datastore/github.go function NewClientInstallationByRepo (line 19) | func NewClientInstallationByRepo(ctx context.Context, ds Datastore, repo... type PendingWorkflowRunWithTarget (line 39) | type PendingWorkflowRunWithTarget struct function GetPendingWorkflowRunByRecentRepositories (line 45) | func GetPendingWorkflowRunByRecentRepositories(ctx context.Context, ds D... function getPendingWorkflowRunByRecentRepositories (line 88) | func getPendingWorkflowRunByRecentRepositories(ctx context.Context, ds D... function getPendingRunByRepo (line 135) | func getPendingRunByRepo(ctx context.Context, client *github.Client, own... function getRecentRepositories (line 158) | func getRecentRepositories(ctx context.Context, ds Datastore) ([]string,... FILE: pkg/datastore/interface.go type Datastore (line 30) | type Datastore interface type Target (line 60) | type Target struct method OwnerRepo (line 77) | func (t *Target) OwnerRepo() (string, string) { method CanReceiveJob (line 82) | func (t *Target) CanReceiveJob() bool { function ListTargets (line 92) | func ListTargets(ctx context.Context, ds Datastore) ([]Target, error) { function UpdateTargetStatus (line 110) | func UpdateTargetStatus(ctx context.Context, ds Datastore, targetID uuid... function SearchRepo (line 131) | func SearchRepo(ctx context.Context, ds Datastore, repo string) (*Target... type TargetStatus (line 160) | type TargetStatus constant TargetStatusActive (line 164) | TargetStatusActive TargetStatus = "active" constant TargetStatusRunning (line 165) | TargetStatusRunning = "running" constant TargetStatusSuspend (line 166) | TargetStatusSuspend = "suspend" constant TargetStatusDeleted (line 167) | TargetStatusDeleted = "deleted" constant TargetStatusErr (line 168) | TargetStatusErr = "error" type Job (line 172) | type Job struct method RepoURL (line 183) | func (j *Job) RepoURL() string { type Runner (line 200) | type Runner struct type RunnerStatus (line 219) | type RunnerStatus constant RunnerStatusCreated (line 223) | RunnerStatusCreated RunnerStatus = "created" constant RunnerStatusCompleted (line 224) | RunnerStatusCompleted = "completed" constant RunnerStatusReachHardLimit (line 225) | RunnerStatusReachHardLimit = "reach_hard_limit" FILE: pkg/datastore/memory/memory.go type Memory (line 16) | type Memory struct method CreateTarget (line 39) | func (m *Memory) CreateTarget(ctx context.Context, target datastore.Ta... method GetTarget (line 48) | func (m *Memory) GetTarget(ctx context.Context, id uuid.UUID) (*datast... method GetTargetByScope (line 60) | func (m *Memory) GetTargetByScope(ctx context.Context, scope string) (... method ListTargets (line 76) | func (m *Memory) ListTargets(ctx context.Context) ([]datastore.Target,... method DeleteTarget (line 90) | func (m *Memory) DeleteTarget(ctx context.Context, id uuid.UUID) error { method UpdateTargetStatus (line 99) | func (m *Memory) UpdateTargetStatus(ctx context.Context, targetID uuid... method UpdateToken (line 122) | func (m *Memory) UpdateToken(ctx context.Context, targetID uuid.UUID, ... method UpdateTargetParam (line 138) | func (m *Memory) UpdateTargetParam(ctx context.Context, targetID uuid.... method EnqueueJob (line 157) | func (m *Memory) EnqueueJob(ctx context.Context, job datastore.Job) er... method ListJobs (line 166) | func (m *Memory) ListJobs(ctx context.Context) ([]datastore.Job, error) { method DeleteJob (line 179) | func (m *Memory) DeleteJob(ctx context.Context, id uuid.UUID) error { method CreateRunner (line 188) | func (m *Memory) CreateRunner(ctx context.Context, runner datastore.Ru... method ListRunners (line 198) | func (m *Memory) ListRunners(ctx context.Context) ([]datastore.Runner,... method ListRunnersByTargetID (line 211) | func (m *Memory) ListRunnersByTargetID(ctx context.Context, targetID u... method ListRunnersLogBySince (line 226) | func (m *Memory) ListRunnersLogBySince(ctx context.Context, since time... method GetRunner (line 241) | func (m *Memory) GetRunner(ctx context.Context, id uuid.UUID) (*datast... method DeleteRunner (line 254) | func (m *Memory) DeleteRunner(ctx context.Context, id uuid.UUID, delet... method GetLock (line 263) | func (m *Memory) GetLock(ctx context.Context) error { method IsLocked (line 268) | func (m *Memory) IsLocked(ctx context.Context) (string, error) { function New (line 24) | func New() (*Memory, error) { FILE: pkg/datastore/mysql/job.go method EnqueueJob (line 14) | func (m *MySQL) EnqueueJob(ctx context.Context, job datastore.Job) error { method ListJobs (line 31) | func (m *MySQL) ListJobs(ctx context.Context) ([]datastore.Job, error) { method DeleteJob (line 46) | func (m *MySQL) DeleteJob(ctx context.Context, id uuid.UUID) error { FILE: pkg/datastore/mysql/job_test.go function TestMySQL_EnqueueJob (line 21) | func TestMySQL_EnqueueJob(t *testing.T) { function TestMySQL_ListJobs (line 80) | func TestMySQL_ListJobs(t *testing.T) { function TestMySQL_DeleteJob (line 149) | func TestMySQL_DeleteJob(t *testing.T) { function getJobFromSQL (line 209) | func getJobFromSQL(testDB *sqlx.DB, id uuid.UUID) (*datastore.Job, error) { FILE: pkg/datastore/mysql/lock.go method GetLock (line 13) | func (m *MySQL) GetLock(ctx context.Context) error { method IsLocked (line 31) | func (m *MySQL) IsLocked(ctx context.Context) (string, error) { FILE: pkg/datastore/mysql/mysql.go type MySQL (line 12) | type MySQL struct function New (line 19) | func New(dsn string, notifyEnqueueCh chan<- struct{}) (*MySQL, error) { function getMySQLURL (line 36) | func getMySQLURL(dsn string) (string, error) { FILE: pkg/datastore/mysql/mysql_test.go function TestMain (line 10) | func TestMain(m *testing.M) { FILE: pkg/datastore/mysql/runner.go method CreateRunner (line 15) | func (m *MySQL) CreateRunner(ctx context.Context, runner datastore.Runne... method ListRunners (line 44) | func (m *MySQL) ListRunners(ctx context.Context) ([]datastore.Runner, er... method ListRunnersByTargetID (line 61) | func (m *MySQL) ListRunnersByTargetID(ctx context.Context, targetID uuid... method ListRunnersLogBySince (line 78) | func (m *MySQL) ListRunnersLogBySince(ctx context.Context, since time.Ti... method GetRunner (line 95) | func (m *MySQL) GetRunner(ctx context.Context, id uuid.UUID) (*datastore... method DeleteRunner (line 111) | func (m *MySQL) DeleteRunner(ctx context.Context, id uuid.UUID, deletedA... FILE: pkg/datastore/mysql/runner_test.go function TestMySQL_CreateRunner (line 21) | func TestMySQL_CreateRunner(t *testing.T) { function TestMySQL_ListRunners (line 123) | func TestMySQL_ListRunners(t *testing.T) { function TestMySQL_ListRunnersNotReturnDeleted (line 195) | func TestMySQL_ListRunnersNotReturnDeleted(t *testing.T) { function TestMySQL_ListRunnersLogBySince (line 262) | func TestMySQL_ListRunnersLogBySince(t *testing.T) { function TestMySQL_GetRunner (line 326) | func TestMySQL_GetRunner(t *testing.T) { function TestMySQL_DeleteRunner (line 388) | func TestMySQL_DeleteRunner(t *testing.T) { function getRunnerFromSQL (line 465) | func getRunnerFromSQL(testDB *sqlx.DB, id uuid.UUID) (*datastore.Runner,... function getRunningRunnerFromSQL (line 479) | func getRunningRunnerFromSQL(testDB *sqlx.DB, id uuid.UUID) (*datastore.... function getDeletedRunnerFromSQL (line 494) | func getDeletedRunnerFromSQL(testDB *sqlx.DB, id uuid.UUID) (*datastore.... FILE: pkg/datastore/mysql/schema.sql type `targets` (line 1) | CREATE TABLE `targets` ( type `runners` (line 16) | CREATE TABLE `runners` ( type `runner_detail` (line 21) | CREATE TABLE `runner_detail` ( type `runners_running` (line 40) | CREATE TABLE `runners_running` ( type `runners_deleted` (line 47) | CREATE TABLE `runners_deleted` ( type `jobs` (line 55) | CREATE TABLE `jobs` ( FILE: pkg/datastore/mysql/target.go method CreateTarget (line 15) | func (m *MySQL) CreateTarget(ctx context.Context, target datastore.Targe... method GetTarget (line 37) | func (m *MySQL) GetTarget(ctx context.Context, id uuid.UUID) (*datastore... method GetTargetByScope (line 52) | func (m *MySQL) GetTargetByScope(ctx context.Context, scope string) (*da... method ListTargets (line 67) | func (m *MySQL) ListTargets(ctx context.Context) ([]datastore.Target, er... method DeleteTarget (line 78) | func (m *MySQL) DeleteTarget(ctx context.Context, id uuid.UUID) error { method UpdateTargetStatus (line 88) | func (m *MySQL) UpdateTargetStatus(ctx context.Context, targetID uuid.UU... method UpdateToken (line 98) | func (m *MySQL) UpdateToken(ctx context.Context, targetID uuid.UUID, new... method UpdateTargetParam (line 108) | func (m *MySQL) UpdateTargetParam(ctx context.Context, targetID uuid.UUI... FILE: pkg/datastore/mysql/target_test.go function TestMySQL_CreateTarget (line 29) | func TestMySQL_CreateTarget(t *testing.T) { function TestMySQL_GetTarget (line 121) | func TestMySQL_GetTarget(t *testing.T) { function TestMySQL_GetTargetByScope (line 179) | func TestMySQL_GetTargetByScope(t *testing.T) { function TestMySQL_ListTargets (line 347) | func TestMySQL_ListTargets(t *testing.T) { function TestMySQL_DeleteTarget (line 406) | func TestMySQL_DeleteTarget(t *testing.T) { function TestMySQL_UpdateStatus (line 468) | func TestMySQL_UpdateStatus(t *testing.T) { function TestMySQL_UpdateToken (line 570) | func TestMySQL_UpdateToken(t *testing.T) { function TestMySQL_UpdateTargetParam (line 649) | func TestMySQL_UpdateTargetParam(t *testing.T) { function getTargetFromSQL (line 792) | func getTargetFromSQL(testDB *sqlx.DB, uuid uuid.UUID) (*datastore.Targe... FILE: pkg/datastore/resource_type.go type ResourceType (line 12) | type ResourceType method String (line 29) | func (r ResourceType) String() string { method Value (line 55) | func (r ResourceType) Value() (driver.Value, error) { method Scan (line 60) | func (r *ResourceType) Scan(src interface{}) error { method ToPb (line 143) | func (r ResourceType) ToPb() pb.ResourceType { method MarshalJSON (line 169) | func (r ResourceType) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 174) | func (r *ResourceType) UnmarshalJSON(data []byte) error { constant ResourceTypeUnknown (line 16) | ResourceTypeUnknown ResourceType = iota constant ResourceTypeNano (line 17) | ResourceTypeNano constant ResourceTypeMicro (line 18) | ResourceTypeMicro constant ResourceTypeSmall (line 19) | ResourceTypeSmall constant ResourceTypeMedium (line 20) | ResourceTypeMedium constant ResourceTypeLarge (line 21) | ResourceTypeLarge constant ResourceTypeXLarge (line 22) | ResourceTypeXLarge constant ResourceType2XLarge (line 23) | ResourceType2XLarge constant ResourceType3XLarge (line 24) | ResourceType3XLarge constant ResourceType4XLarge (line 25) | ResourceType4XLarge function UnmarshalResourceType (line 79) | func UnmarshalResourceType(src interface{}) ResourceType { function UnmarshalResourceTypeString (line 91) | func UnmarshalResourceTypeString(in string) ResourceType { function UnmarshalResourceTypePb (line 117) | func UnmarshalResourceTypePb(in pb.ResourceType) ResourceType { FILE: pkg/docker/ratelimit.go type RateLimit (line 17) | type RateLimit struct type tokenCache (line 22) | type tokenCache struct function getToken (line 29) | func getToken() (string, error) { function GetRateLimit (line 74) | func GetRateLimit() (RateLimit, error) { FILE: pkg/gh/github.go function InitializeCache (line 41) | func InitializeCache(appID int64, appPEM []byte) error { function NewClient (line 52) | func NewClient(token string) (*github.Client, error) { function NewClientGitHubApps (line 75) | func NewClientGitHubApps() (*github.Client, error) { function NewClientInstallation (line 93) | func NewClientInstallation(installationID int64) (*github.Client, error) { function setInstallationTransport (line 107) | func setInstallationTransport(installationID int64, itr ghinstallation.T... function getInstallationTransport (line 111) | func getInstallationTransport(installationID int64) *ghinstallation.Tran... function generateInstallationTransport (line 124) | func generateInstallationTransport(installationID int64) *ghinstallation... function CheckSignature (line 131) | func CheckSignature(installationID int64) error { function ExistRunnerReleases (line 140) | func ExistRunnerReleases(runnerVersion string) error { function ExistGitHubRepository (line 157) | func ExistGitHubRepository(scope string, accessToken string) error { function getRepositoryURL (line 184) | func getRepositoryURL(scope string) (string, error) { function getAPIEndpoint (line 208) | func getAPIEndpoint() (*url.URL, error) { FILE: pkg/gh/github_test.go function TestDetectScope (line 10) | func TestDetectScope(t *testing.T) { type TestGetRepositoryURLInput (line 42) | type TestGetRepositoryURLInput struct function TestGetRepositoryURL (line 47) | func TestGetRepositoryURL(t *testing.T) { FILE: pkg/gh/installation.go function listInstallations (line 12) | func listInstallations(ctx context.Context) ([]*github.Installation, err... function getCacheInstallationsKey (line 27) | func getCacheInstallationsKey() string { function _listInstallations (line 31) | func _listInstallations(ctx context.Context) ([]*github.Installation, er... function listAppsInstalledRepo (line 58) | func listAppsInstalledRepo(ctx context.Context, installationID int64) ([... function getCacheInstalledRepoKey (line 73) | func getCacheInstalledRepoKey(installationID int64) string { function _listAppsInstalledRepo (line 77) | func _listAppsInstalledRepo(ctx context.Context, installationID int64) (... function GetInstallationByID (line 106) | func GetInstallationByID(ctx context.Context, installationID int64) (*gi... function PurgeInstallationCache (line 122) | func PurgeInstallationCache(ctx context.Context) error { FILE: pkg/gh/jwt.go function GenerateGitHubAppsToken (line 22) | func GenerateGitHubAppsToken(ctx context.Context, clientApps *github.Cli... function IsInstalledGitHubApp (line 34) | func IsInstalledGitHubApp(ctx context.Context, inputScope string) (int64... type ErrIsNotInstalledGitHubApps (line 72) | type ErrIsNotInstalledGitHubApps struct method Error (line 77) | func (e *ErrIsNotInstalledGitHubApps) Error() string { method Unwrap (line 81) | func (e *ErrIsNotInstalledGitHubApps) Unwrap() error { function isInstalledGitHubAppSelected (line 85) | func isInstalledGitHubAppSelected(ctx context.Context, inputScope string... FILE: pkg/gh/jwt_test.go function setStubFunctions (line 11) | func setStubFunctions() { function Test_IsInstalledGitHubApp (line 62) | func Test_IsInstalledGitHubApp(t *testing.T) { FILE: pkg/gh/label.go function IsRequestedMyshoesLabel (line 6) | func IsRequestedMyshoesLabel(labels []string) bool { FILE: pkg/gh/metrics.go constant githubAPINamespace (line 16) | githubAPINamespace = "myshoes" type instrumentedTransport (line 67) | type instrumentedTransport struct method RoundTrip (line 81) | func (t *instrumentedTransport) RoundTrip(req *http.Request) (*http.Re... function newInstrumentedTransport (line 71) | func newInstrumentedTransport(next http.RoundTripper) http.RoundTripper { function classifyGitHubAPIError (line 121) | func classifyGitHubAPIError(err error) string { FILE: pkg/gh/metrics_test.go type stubTransport (line 13) | type stubTransport struct method RoundTrip (line 18) | func (s *stubTransport) RoundTrip(req *http.Request) (*http.Response, ... type timeoutErr (line 25) | type timeoutErr struct method Error (line 27) | func (timeoutErr) Error() string { return "timeout" } method Timeout (line 28) | func (timeoutErr) Timeout() bool { return true } method Temporary (line 29) | func (timeoutErr) Temporary() bool { return true } function TestInstrumentedTransportMetrics (line 31) | func TestInstrumentedTransportMetrics(t *testing.T) { function TestInstrumentedTransportCacheHit (line 66) | func TestInstrumentedTransportCacheHit(t *testing.T) { function TestInstrumentedTransportErrorMetrics (line 94) | func TestInstrumentedTransportErrorMetrics(t *testing.T) { FILE: pkg/gh/ratelimit.go function storeRateLimit (line 10) | func storeRateLimit(scope string, rateLimit github.Rate) { function getRateLimitKey (line 20) | func getRateLimitKey(org, repo string) string { function GetRateLimitRemain (line 29) | func GetRateLimitRemain() map[string]int { function GetRateLimitLimit (line 54) | func GetRateLimitLimit() map[string]int { FILE: pkg/gh/runner.go function ExistGitHubRunner (line 14) | func ExistGitHubRunner(ctx context.Context, client *github.Client, owner... function ExistGitHubRunnerWithRunner (line 24) | func ExistGitHubRunnerWithRunner(runners []*github.Runner, runnerName st... function ListRunners (line 35) | func ListRunners(ctx context.Context, client *github.Client, owner, repo... function getCacheKey (line 69) | func getCacheKey(owner, repo string) string { function listRunners (line 73) | func listRunners(ctx context.Context, client *github.Client, owner, repo... function GetLatestRunnerVersion (line 90) | func GetLatestRunnerVersion(ctx context.Context, scope string) (string, ... function getRunnerVersion (line 128) | func getRunnerVersion(applications []*github.RunnerApplicationDownload) ... function ConcatLabels (line 142) | func ConcatLabels(checkEventJSON string) (string, error) { FILE: pkg/gh/scope.go type Scope (line 6) | type Scope method String (line 16) | func (s Scope) String() string { constant Unknown (line 10) | Unknown Scope = iota constant Repository (line 11) | Repository constant Organization (line 12) | Organization function DetectScope (line 28) | func DetectScope(scope string) Scope { function DivideScope (line 41) | func DivideScope(scope string) (string, string) { FILE: pkg/gh/token_registration.go function GetRunnerRegistrationToken (line 17) | func GetRunnerRegistrationToken(ctx context.Context, installationID int6... function generateRunnerRegisterToken (line 33) | func generateRunnerRegisterToken(ctx context.Context, installationID int... function setRunnerRegisterTokenCache (line 58) | func setRunnerRegisterTokenCache(installationID int64, scope, token stri... function getRunnerRegisterTokenFromCache (line 64) | func getRunnerRegisterTokenFromCache(installationID int64, scope string)... function getCacheKeyRegistrationToken (line 76) | func getCacheKeyRegistrationToken(installationID int64, scope string) st... FILE: pkg/gh/webhook.go function parseEventJSON (line 12) | func parseEventJSON(in []byte) (interface{}, error) { function ExtractRunsOnLabels (line 35) | func ExtractRunsOnLabels(in []byte) ([]string, error) { FILE: pkg/gh/workflow_job.go function listWorkflowJob (line 11) | func listWorkflowJob(ctx context.Context, client *github.Client, owner, ... function ListWorkflowJobByRunID (line 20) | func ListWorkflowJobByRunID(ctx context.Context, client *github.Client, ... function getWorkflowJobCacheKey (line 36) | func getWorkflowJobCacheKey(owner, repo string, runID int64) string { FILE: pkg/gh/workflow_run.go function listWorkflowRuns (line 12) | func listWorkflowRuns(ctx context.Context, client *github.Client, owner,... function ListWorkflowRunsNewest (line 21) | func ListWorkflowRunsNewest(ctx context.Context, client *github.Client, ... function getRunsCacheKey (line 57) | func getRunsCacheKey(owner, repo string) string { FILE: pkg/logger/logger.go function SetLogger (line 17) | func SetLogger(l *log.Logger) { function Logf (line 27) | func Logf(isDebug bool, format string, v ...interface{}) { FILE: pkg/metric/collector.go constant namespace (line 15) | namespace = "myshoes" type Collector (line 27) | type Collector struct method Describe (line 45) | func (c *Collector) Describe(ch chan<- *prometheus.Desc) { method Collect (line 52) | func (c *Collector) Collect(ch chan<- prometheus.Metric) { method scrape (line 60) | func (c *Collector) scrape(ctx context.Context, ch chan<- prometheus.M... function NewCollector (line 35) | func NewCollector(ctx context.Context, ds datastore.Datastore) *Collector { type Scraper (line 83) | type Scraper interface function NewScrapers (line 90) | func NewScrapers() []Scraper { type Metrics (line 99) | type Metrics struct function NewMetrics (line 106) | func NewMetrics() Metrics { FILE: pkg/metric/scrape_datastore.go constant datastoreName (line 18) | datastoreName = "datastore" type ScraperDatastore (line 63) | type ScraperDatastore struct method Name (line 66) | func (ScraperDatastore) Name() string { method Help (line 71) | func (ScraperDatastore) Help() string { method Scrape (line 76) | func (ScraperDatastore) Scrape(ctx context.Context, ds datastore.Datas... function scrapeJobs (line 90) | func scrapeJobs(ctx context.Context, ds datastore.Datastore, ch chan<- p... function scrapeJobCounter (line 169) | func scrapeJobCounter(ctx context.Context, ds datastore.Datastore, ch ch... function scrapeTargets (line 181) | func scrapeTargets(ctx context.Context, ds datastore.Datastore, ch chan<... function scrapeRunners (line 212) | func scrapeRunners(ctx context.Context, ds datastore.Datastore, ch chan<... FILE: pkg/metric/scrape_github.go constant githubName (line 16) | githubName = "github" type ScraperGitHub (line 45) | type ScraperGitHub struct method Name (line 48) | func (ScraperGitHub) Name() string { method Help (line 53) | func (ScraperGitHub) Help() string { method Scrape (line 58) | func (s ScraperGitHub) Scrape(ctx context.Context, ds datastore.Datast... function scrapePendingRuns (line 68) | func scrapePendingRuns(ctx context.Context, ds datastore.Datastore, ch c... function scrapeInstallation (line 107) | func scrapeInstallation(ctx context.Context, ch chan<- prometheus.Metric... FILE: pkg/metric/scrape_memory.go constant memoryName (line 19) | memoryName = "memory" type ScraperMemory (line 85) | type ScraperMemory struct method Name (line 88) | func (ScraperMemory) Name() string { method Help (line 93) | func (ScraperMemory) Help() string { method Scrape (line 98) | func (ScraperMemory) Scrape(ctx context.Context, ds datastore.Datastor... function scrapeStarterValues (line 113) | func scrapeStarterValues(ch chan<- prometheus.Metric) error { function scrapeGitHubValues (line 162) | func scrapeGitHubValues(ch chan<- prometheus.Metric) error { function scrapeDockerValues (line 182) | func scrapeDockerValues(ch chan<- prometheus.Metric) error { FILE: pkg/runner/runner.go type Manager (line 28) | type Manager struct method Loop (line 42) | func (m *Manager) Loop(ctx context.Context) error { function New (line 34) | func New(ds datastore.Datastore, runnerVersion string) *Manager { type TemporaryMode (line 81) | type TemporaryMode method StringFlag (line 91) | func (rtm TemporaryMode) StringFlag() string { constant TemporaryUnknown (line 85) | TemporaryUnknown TemporaryMode = iota constant TemporaryOnce (line 86) | TemporaryOnce constant TemporaryEphemeral (line 87) | TemporaryEphemeral function GetRunnerTemporaryMode (line 102) | func GetRunnerTemporaryMode(runnerVersion string) (string, TemporaryMode... FILE: pkg/runner/runner_delete.go method do (line 36) | func (m *Manager) do(ctx context.Context) error { method removeRunners (line 55) | func (m *Manager) removeRunners(ctx context.Context, t datastore.Target)... method removeRunner (line 151) | func (m *Manager) removeRunner(ctx context.Context, t datastore.Target, ... function isRegisteredRunnerZeroInGitHub (line 181) | func isRegisteredRunnerZeroInGitHub(ctx context.Context, t datastore.Tar... constant ErrDescriptionRunnerForQueueingIsNotFound (line 203) | ErrDescriptionRunnerForQueueingIsNotFound = "runner for queueing is not ... function sanitizeGitHubRunner (line 213) | func sanitizeGitHubRunner(ghRunner github.Runner, dsRunner datastore.Run... function sanitizeRunnerMustRunningTime (line 237) | func sanitizeRunnerMustRunningTime(runner datastore.Runner) error { function sanitizeRunner (line 241) | func sanitizeRunner(runner datastore.Runner, needTime time.Duration) err... method deleteRunnerWithGitHub (line 253) | func (m *Manager) deleteRunnerWithGitHub(ctx context.Context, githubClie... method deleteRunner (line 277) | func (m *Manager) deleteRunner(ctx context.Context, runner datastore.Run... FILE: pkg/runner/runner_delete_ephemeral.go method removeRunnerModeEphemeral (line 16) | func (m *Manager) removeRunnerModeEphemeral(ctx context.Context, t datas... FILE: pkg/runner/runner_delete_once.go method removeRunnerModeOnce (line 16) | func (m *Manager) removeRunnerModeOnce(ctx context.Context, t datastore.... FILE: pkg/runner/token_update.go method doTargetToken (line 13) | func (m *Manager) doTargetToken(ctx context.Context) error { FILE: pkg/runner/util.go function ToName (line 12) | func ToName(u string) string { function ToUUID (line 17) | func ToUUID(name string) (uuid.UUID, error) { function ToReason (line 23) | func ToReason(status string) datastore.RunnerStatus { FILE: pkg/shoes/shoes.go function GetClient (line 21) | func GetClient() (Client, func(), error) { type Plugin (line 56) | type Plugin struct method GRPCServer (line 63) | func (p *Plugin) GRPCServer(broker *plugin.GRPCBroker, s *grpc.Server)... method GRPCClient (line 68) | func (p *Plugin) GRPCClient(ctx context.Context, broker *plugin.GRPCBr... type Client (line 73) | type Client interface type GRPCClient (line 79) | type GRPCClient struct method AddInstance (line 84) | func (c *GRPCClient) AddInstance(ctx context.Context, runnerName, setu... method DeleteInstance (line 104) | func (c *GRPCClient) DeleteInstance(ctx context.Context, cloudID strin... FILE: pkg/starter/error.go type Error (line 5) | type Error struct method Error (line 10) | func (e Error) Error() string { method Unwrap (line 14) | func (e Error) Unwrap() error { method Is (line 43) | func (e Error) Is(target error) bool { type internalError (line 18) | type internalError method String (line 24) | func (i internalError) String() string { constant errorInvalidLabel (line 21) | errorInvalidLabel internalError = iota function NewInvalidLabel (line 37) | func NewInvalidLabel(err error) error { FILE: pkg/starter/metric.go function incrementDeleteJobMap (line 16) | func incrementDeleteJobMap(j datastore.Job) error { FILE: pkg/starter/safety/safety.go type Safety (line 8) | type Safety interface FILE: pkg/starter/safety/unlimited/unlimited.go type Unlimited (line 7) | type Unlimited struct method Check (line 10) | func (u Unlimited) Check(job *datastore.Job) (bool, error) { FILE: pkg/starter/scripts.go function getPatchedFiles (line 21) | func getPatchedFiles() (string, error) { type templateCompressedScriptValue (line 25) | type templateCompressedScriptValue struct method GetSetupScript (line 30) | func (s *Starter) GetSetupScript(ctx context.Context, targetScope, runne... method getSetupRawScript (line 65) | func (s *Starter) getSetupRawScript(ctx context.Context, targetScope, ru... function labelsToOneLine (line 124) | func labelsToOneLine(labels []string) string { constant templateCompressedScript (line 132) | templateCompressedScript = `#!/bin/bash type templateCreateLatestRunnerOnceValue (line 145) | type templateCreateLatestRunnerOnceValue struct constant templateCreateLatestRunnerOnce (line 161) | templateCreateLatestRunnerOnce = `#!/bin/bash FILE: pkg/starter/starter.go type Starter (line 48) | type Starter struct method Loop (line 66) | func (s *Starter) Loop(ctx context.Context) error { method dispatcher (line 119) | func (s *Starter) dispatcher(ctx context.Context, ch chan datastore.Jo... method run (line 134) | func (s *Starter) run(ctx context.Context, ch chan datastore.Job) error { method ProcessJob (line 212) | func (s *Starter) ProcessJob(ctx context.Context, job datastore.Job) e... method bung (line 336) | func (s *Starter) bung(ctx context.Context, job datastore.Job, target ... method checkRegisteredRunner (line 409) | func (s *Starter) checkRegisteredRunner(ctx context.Context, runnerNam... method reRunWorkflow (line 442) | func (s *Starter) reRunWorkflow(ctx context.Context) { function New (line 56) | func New(ds datastore.Datastore, s safety.Safety, runnerVersion string, ... function extractWorkflowIDs (line 193) | func extractWorkflowIDs(job datastore.Job) (runID int64, jobID int64, er... function getTargetScope (line 381) | func getTargetScope(target datastore.Target, job datastore.Job) string { function deleteInstance (line 388) | func deleteInstance(ctx context.Context, cloudID, checkEventJSON string)... function reRunWorkflowByPendingRun (line 457) | func reRunWorkflowByPendingRun(ctx context.Context, ds datastore.Datasto... function enqueueRescueRun (line 464) | func enqueueRescueRun(ctx context.Context, pendingRun datastore.PendingW... function enqueueRescueJob (line 538) | func enqueueRescueJob(ctx context.Context, workflowJob *github.WorkflowJ... FILE: pkg/web/config.go type inputConfigDebug (line 11) | type inputConfigDebug struct type inputConfigStrict (line 15) | type inputConfigStrict struct function handleConfigDebug (line 19) | func handleConfigDebug(w http.ResponseWriter, r *http.Request) { function handleConfigStrict (line 33) | func handleConfigStrict(w http.ResponseWriter, r *http.Request) { FILE: pkg/web/http.go function NewMux (line 19) | func NewMux(ds datastore.Datastore) *goji.Mux { function Serve (line 82) | func Serve(ctx context.Context, ds datastore.Datastore) error { function apacheLogging (line 107) | func apacheLogging(r *http.Request) { FILE: pkg/web/http_test.go function TestMain (line 10) | func TestMain(m *testing.M) { FILE: pkg/web/metrics.go function HandleMetrics (line 15) | func HandleMetrics(w http.ResponseWriter, r *http.Request, ds datastore.... FILE: pkg/web/target.go type TargetCreateParam (line 23) | type TargetCreateParam struct method ToDS (line 314) | func (t *TargetCreateParam) ToDS(appToken string, tokenExpired time.Ti... type UserTarget (line 32) | type UserTarget struct function sortUserTarget (line 44) | func sortUserTarget(uts []UserTarget) []UserTarget { function handleTargetList (line 70) | func handleTargetList(w http.ResponseWriter, r *http.Request, ds datasto... function handleTargetRead (line 93) | func handleTargetRead(w http.ResponseWriter, r *http.Request, ds datasto... function sanitizeTarget (line 116) | func sanitizeTarget(t datastore.Target) UserTarget { function handleTargetUpdate (line 132) | func handleTargetUpdate(w http.ResponseWriter, r *http.Request, ds datas... function handleTargetDelete (line 187) | func handleTargetDelete(w http.ResponseWriter, r *http.Request, ds datas... function parseReqTargetID (line 222) | func parseReqTargetID(r *http.Request) (uuid.UUID, error) { type ErrorResponse (line 233) | type ErrorResponse struct function outputErrorMsg (line 237) | func outputErrorMsg(w http.ResponseWriter, status int, msg string) { function validateUpdateTarget (line 246) | func validateUpdateTarget(old, new datastore.Target) error { function isValidTargetCreateParam (line 292) | func isValidTargetCreateParam(input TargetCreateParam) error { function toNullString (line 300) | func toNullString(input *string) sql.NullString { type getWillUpdateTargetVariableOld (line 327) | type getWillUpdateTargetVariableOld struct type getWillUpdateTargetVariableNew (line 332) | type getWillUpdateTargetVariableNew struct function getWillUpdateTargetVariable (line 337) | func getWillUpdateTargetVariable(oldParam getWillUpdateTargetVariableOld... function getWillUpdateTargetVariableString (line 348) | func getWillUpdateTargetVariableString(old sql.NullString, new *string) ... FILE: pkg/web/target_create.go function handleTargetCreate (line 20) | func handleTargetCreate(w http.ResponseWriter, r *http.Request, ds datas... function isValidScopeAndToken (line 126) | func isValidScopeAndToken(ctx context.Context, scope, githubPersonalToke... function createNewTarget (line 146) | func createNewTarget(ctx context.Context, input datastore.Target, ds dat... FILE: pkg/web/target_test.go function parseResponse (line 27) | func parseResponse(resp *http.Response) ([]byte, int) { function setStubFunctions (line 37) | func setStubFunctions() { function Test_handleTargetCreate (line 67) | func Test_handleTargetCreate(t *testing.T) { function Test_handleTargetCreate_alreadyRegistered (line 139) | func Test_handleTargetCreate_alreadyRegistered(t *testing.T) { function Test_handleTargetCreate_recreated (line 169) | func Test_handleTargetCreate_recreated(t *testing.T) { function Test_handleTargetCreate_recreated_update (line 228) | func Test_handleTargetCreate_recreated_update(t *testing.T) { function Test_handleTargetList (line 289) | func Test_handleTargetList(t *testing.T) { function Test_handleTargetRead (line 359) | func Test_handleTargetRead(t *testing.T) { function Test_handleTargetUpdate (line 423) | func Test_handleTargetUpdate(t *testing.T) { function Test_handleTargetUpdate_Error (line 534) | func Test_handleTargetUpdate_Error(t *testing.T) { function Test_handleTargetDelete (line 586) | func Test_handleTargetDelete(t *testing.T) { FILE: pkg/web/webhook.go function HandleGitHubEvent (line 24) | func HandleGitHubEvent(w http.ResponseWriter, r *http.Request, ds datast... function receivePingWebhook (line 108) | func receivePingWebhook(_ context.Context, event *github.PingEvent) error { function receiveCheckRunWebhook (line 113) | func receiveCheckRunWebhook(ctx context.Context, event *github.CheckRunE... function processCheckRun (line 143) | func processCheckRun(ctx context.Context, ds datastore.Datastore, repoNa... function receiveWorkflowJobWebhook (line 188) | func receiveWorkflowJobWebhook(ctx context.Context, event *github.Workfl...