{"modulePath":"github.com/GoCodeAlone/workflow-plugin-github","version":"v1.0.34","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package providercontract\n\n## Constants\n\n```go\nconst (\n\tCatalogPath                  = \"provider.contracts.json\"\n\tGitHubRunnerContractID       = \"github.runner_provider.v1\"\n\tGitHubRunnerContractPath     = \"contracts/github-runner-provider.json\"\n\tGitHubRunnerConfigSchemaRef  = \"schema://providers/workflow-plugin-github/github-runner/v1\"\n\tGitHubRunnerConfigSchemaPath = \"schemas/github-runner-provider.schema.json\"\n\tGitHubRunnerInputSchemaRef   = \"schema://providers/workflow-plugin-github/github-runner/operations/ephemeral_runner_job/input/v1\"\n\tGitHubRunnerInputSchemaPath  = \"schemas/github-runner-ephemeral-job-input.schema.json\"\n\tGitHubRunnerOutputSchemaRef  = \"schema://providers/workflow-plugin-github/github-runner/operations/ephemeral_runner_job/output/v1\"\n\tGitHubRunnerOutputSchemaPath = \"schemas/github-runner-ephemeral-job-output.schema.json\"\n)\n```\n\n## Types\n\n```go\ntype Catalog struct {\n\tVersion   string        `json:\"version\"`\n\tContracts []ContractRef `json:\"contracts\"`\n}\n```\n\n```go\nfunc LoadCatalog(filesystem fs.FS) (Catalog, error)\n```\n\n```go\nfunc (c Catalog) Validate(filesystem fs.FS) error\n```\n\n```go\ntype Config struct {\n\tOrganizations []string `json:\"organizations,omitempty\"`\n\tRepositories  []string `json:\"repositories,omitempty\"`\n\tRunnerGroups  []string `json:\"runner_groups,omitempty\"`\n\tAPIBaseURL    string   `json:\"api_base_url,omitempty\"`\n\tStateDir      string   `json:\"state_dir\"`\n\tToken         string   `json:\"token\"`\n\tProviderToken string   `json:\"provider_token\"`\n}\n```\n\n```go\ntype ContractRef struct {\n\tID      string      `json:\"id\"`\n\tPath    string      `json:\"path\"`\n\tSchemas []SchemaRef `json:\"schemas\"`\n}\n```\n\n```go\ntype SchemaRef struct {\n\tRef  string `json:\"ref\"`\n\tPath string `json:\"path\"`\n}\n```\n\n","path":"github.com/GoCodeAlone/workflow-plugin-github/providercontract","name":"providercontract","synopsis":"","isRedistributable":true}
