Documentation ¶
Index ¶
- Variables
- type AccessToken
- type Build
- type BuildCacheKey
- type BuildRun
- type BuildStatus
- type Credential
- type Digest
- type Event
- type EventMessage
- type Expiration
- type ExpirationUnit
- type GInst
- type GitBranch
- type GitProvider
- type GitSource
- type GithubInstallation
- type GithubListRepository
- type GithubRepository
- type GithubSearchRepository
- type GithubUserAccount
- type GithubWebhookId
- type GitlabGroup
- type GitlabProject
- type GitlabWebhookId
- type RepoAccess
- type RepoReference
- type Repository
Constants ¶
This section is empty.
Variables ¶
View Source
var BuildCacheKeyIndexes = []repos.IndexField{ { Field: []repos.IndexKey{ {Key: "id", Value: repos.IndexAsc}, }, Unique: true, }, { Field: []repos.IndexKey{ {Key: "name", Value: repos.IndexAsc}, {Key: "accountName", Value: repos.IndexAsc}, }, Unique: true, }, }
View Source
var BuildIndexes = []repos.IndexField{ { Field: []repos.IndexKey{ {Key: "id", Value: repos.IndexAsc}, }, Unique: true, }, { Field: []repos.IndexKey{ {Key: "spec.registry.repo.name", Value: repos.IndexAsc}, {Key: "spec.accountName", Value: repos.IndexAsc}, }, }, { Field: []repos.IndexKey{ {Key: "spec.accountName", Value: repos.IndexAsc}, {Key: "spec.cacheKeyName", Value: repos.IndexAsc}, }, }, }
View Source
var BuildRunIndices = []repos.IndexField{ { Field: []repos.IndexKey{ {Key: "id", Value: repos.IndexAsc}, }, Unique: true, }, { Field: []repos.IndexKey{ {Key: "metadata.name", Value: repos.IndexAsc}, {Key: "metadata.namespace", Value: repos.IndexAsc}, {Key: "accountName", Value: repos.IndexAsc}, {Key: "clusterName", Value: repos.IndexAsc}, }, Unique: true, }, }
View Source
var CredentialIndexes = []repos.IndexField{ { Field: []repos.IndexKey{ {Key: "id", Value: repos.IndexAsc}, }, Unique: true, }, { Field: []repos.IndexKey{ {Key: "username", Value: repos.IndexAsc}, {Key: "accountName", Value: repos.IndexAsc}, }, Unique: true, }, }
View Source
var RepositoryIndexes = []repos.IndexField{ { Field: []repos.IndexKey{ {Key: "id", Value: repos.IndexAsc}, }, Unique: true, }, { Field: []repos.IndexKey{ {Key: "name", Value: repos.IndexAsc}, {Key: "accountName", Value: repos.IndexAsc}, }, Unique: true, }, }
View Source
var TagIndexes = []repos.IndexField{ { Field: []repos.IndexKey{ {Key: "id", Value: repos.IndexAsc}, }, Unique: true, }, { Field: []repos.IndexKey{ {Key: "digest", Value: repos.IndexAsc}, {Key: "repository", Value: repos.IndexAsc}, {Key: "accountName", Value: repos.IndexAsc}, }, Unique: true, }, { Field: []repos.IndexKey{ {Key: "tags", Value: repos.IndexAsc}, }, }, }
Functions ¶
This section is empty.
Types ¶
type AccessToken ¶
type Build ¶
type Build struct { repos.BaseEntity `json:",inline" graphql:"noinput"` Name string `json:"name"` CreatedBy common.CreatedOrUpdatedBy `json:"createdBy" graphql:"noinput"` LastUpdatedBy common.CreatedOrUpdatedBy `json:"lastUpdatedBy" graphql:"noinput"` BuildClusterName string `json:"buildClusterName"` Spec dbv1.BuildRunSpec `json:"spec"` Source GitSource `json:"source"` CredUser common.CreatedOrUpdatedBy `json:"credUser" graphql:"noinput"` ErrorMessages map[string]string `json:"errorMessages" graphql:"noinput"` Status BuildStatus `json:"status" graphql:"noinput"` }
type BuildCacheKey ¶
type BuildCacheKey struct { repos.BaseEntity `json:",inline" graphql:"noinput"` Name string `json:"name"` DisplayName string `json:"displayName"` AccountName string `json:"accountName" graphql:"noinput"` CreatedBy common.CreatedOrUpdatedBy `json:"createdBy" graphql:"noinput"` LastUpdatedBy common.CreatedOrUpdatedBy `json:"lastUpdatedBy" graphql:"noinput"` VolumeSize float32 `json:"volumeSizeInGB"` }
type BuildRun ¶
type BuildRun struct { repos.BaseEntity `json:",inline" graphql:"noinput"` distributionv1.BuildRun `json:",inline" graphql:"noinput"` BuildId repos.ID `json:"buildId" graphql:"noinput,scalar-type=ID"` AccountName string `json:"accountName" graphql:"noinput"` ClusterName string `json:"clusterName" graphql:"noinput"` SyncStatus t.SyncStatus `json:"syncStatus" graphql:"noinput"` common.ResourceMetadata `json:",inline"` }
func (*BuildRun) GetDisplayName ¶
func (*BuildRun) GetGeneration ¶
type BuildStatus ¶
type BuildStatus string
const ( BuildStatusPending BuildStatus = "pending" BuildStatusQueued BuildStatus = "queued" BuildStatusRunning BuildStatus = "running" BuildStatusSuccess BuildStatus = "success" BuildStatusFailed BuildStatus = "failed" BuildStatusError BuildStatus = "error" BuildStatusIdle BuildStatus = "idle" )
type Credential ¶
type Credential struct { repos.BaseEntity `json:",inline" graphql:"noinput"` CreatedBy common.CreatedOrUpdatedBy `json:"createdBy" graphql:"noinput"` LastUpdatedBy common.CreatedOrUpdatedBy `json:"lastUpdatedBy" graphql:"noinput"` AccountName string `json:"accountName" graphql:"noinput"` Access RepoAccess `json:"access"` Expiration Expiration `json:"expiration"` Name string `json:"name"` UserName string `json:"username"` TokenKey string `json:"token_key" graphql:"ignore"` }
type Digest ¶
type Digest struct { repos.BaseEntity `json:",inline" graphql:"noinput"` Tags []string `json:"tags" graphql:"noinput"` AccountName string `json:"accountName" graphql:"noinput"` Repository string `json:"repository" graphql:"noinput"` Actor string `json:"actor" graphql:"noinput"` Digest string `json:"digest" graphql:"noinput"` Size int `json:"size" graphql:"noinput"` Length int `json:"length" graphql:"noinput"` MediaType string `json:"mediaType" graphql:"noinput"` URL string `json:"url" graphql:"noinput"` // References []RepoReference `json:"references" graphql:"noinput"` Deleting bool `json:"deleting" graphql:"noinput"` }
type Event ¶
type Event struct { ID string `json:"id"` Timestamp string `json:"timestamp"` Action string `json:"action"` Target struct { MediaType string `json:"mediaType"` Size int `json:"size"` Digest string `json:"digest"` Length int `json:"length"` Repository string `json:"repository"` URL string `json:"url"` Tag string `json:"tag"` References []RepoReference `json:"references"` } `json:"target"` Request struct { ID string `json:"id"` Addr string `json:"addr"` Host string `json:"host"` Method string `json:"method"` Useragent string `json:"useragent"` } `json:"request"` Actor struct { Name string `json:"name"` } `json:"actor"` Source struct { Addr string `json:"addr"` InstanceID string `json:"instanceID"` } `json:"source"` }
type EventMessage ¶
type EventMessage struct {
Events []Event
}
type Expiration ¶
type Expiration struct { Unit ExpirationUnit `json:"unit"` Value int `json:"value"` }
type ExpirationUnit ¶
type ExpirationUnit string
const ( ExpirationUnitHour ExpirationUnit = "h" ExpirationUnitDays ExpirationUnit = "d" ExpirationUnitWeek ExpirationUnit = "w" ExpirationUnitMonth ExpirationUnit = "m" ExpirationUnitYear ExpirationUnit = "y" )
type GInst ¶
type GInst struct { ID *int64 `json:"id,omitempty"` AppID *int64 `json:"appId,omitempty"` TargetType *string `json:"targetType,omitempty"` TargetID *int64 `json:"targetId,omitempty"` NodeID *string `json:"nodeId,omitempty"` RepositoriesURL *string `json:"repositoriesUrl,omitempty"` Account GithubUserAccount `json:"account,omitempty"` }
type GitProvider ¶
type GitProvider string
const ( Github GitProvider = "github" Gitlab GitProvider = "gitlab" )
type GitSource ¶
type GitSource struct { Repository string `json:"repository"` Branch string `json:"branch"` Provider GitProvider `json:"provider"` WebhookId *int `json:"webhookId" graphql:"noinput"` }
type GithubInstallation ¶
type GithubInstallation struct {
GInst `json:",inline" graphql:"noinput"`
}
type GithubListRepository ¶
type GithubListRepository struct { TotalCount *int `json:"totalCount,omitempty" graphql:"noinput"` Repositories []*GithubRepository `json:"repositories" graphql:"noinput"` }
type GithubRepository ¶
type GithubRepository struct { ID *int64 `json:"id,omitempty"` NodeID *string `json:"node_id,omitempty"` URL *string `json:"url,omitempty"` Name *string `json:"name,omitempty"` FullName *string `json:"fullName,omitempty"` Description *string `json:"description,omitempty"` DefaultBranch *string `json:"defaultBranch,omitempty"` MasterBranch *string `json:"masterBranch,omitempty"` CreatedAt time.Time `json:"createdAt,omitempty"` PushedAt time.Time `json:"pushedAt,omitempty"` UpdatedAt time.Time `json:"updatedAt,omitempty"` HTMLURL *string `json:"htmlUrl,omitempty"` CloneURL *string `json:"cloneUrl,omitempty"` GitURL *string `json:"gitUrl,omitempty"` MirrorURL *string `json:"mirrorUrl,omitempty"` Language *string `json:"language,omitempty"` Size *int `json:"size,omitempty"` Permissions map[string]bool `json:"permissions,omitempty"` Archived *bool `json:"archived,omitempty"` Disabled *bool `json:"disabled,omitempty"` // Additional mutable fields when creating and editing a repository Private *bool `json:"private,omitempty"` GitignoreTemplate *string `json:"gitignoreTemplate,omitempty"` // Creating an organization repository. Required for non-owners. TeamID *int64 `json:"team_id,omitempty"` Visibility *string `json:"visibility,omitempty"` }
type GithubSearchRepository ¶
type GithubSearchRepository struct { Total *int `json:"total,omitempty" graphql:"noinput"` Repositories []*GithubRepository `json:"repositories" graphql:"noinput"` IncompleteResults *bool `json:"incompleteResults,omitempty" graphql:"noinput"` }
type GithubUserAccount ¶
type GithubWebhookId ¶
type GithubWebhookId int64
type GitlabGroup ¶
type GitlabProject ¶
type GitlabProject struct { ID int `json:"id" graphql:"noinput"` Description string `json:"description" graphql:"noinput"` DefaultBranch string `json:"defaultBranch" graphql:"noinput"` Public bool `json:"public" graphql:"noinput"` SSHURLToRepo string `json:"sshUrlToRepo" graphql:"noinput"` HTTPURLToRepo string `json:"httpUrlToRepo" graphql:"noinput"` WebURL string `json:"webUrl" graphql:"noinput"` TagList []string `json:"tagList" graphql:"noinput"` Topics []string `json:"topics" graphql:"noinput"` Name string `json:"name" graphql:"noinput"` NameWithNamespace string `json:"nameWithNamespace" graphql:"noinput"` Path string `json:"path" graphql:"noinput"` PathWithNamespace string `json:"pathWithNamespace" graphql:"noinput"` CreatedAt *time.Time `json:"createdAt,omitempty" graphql:"noinput"` LastActivityAt *time.Time `json:"lastActivityAt,omitempty" graphql:"noinput"` CreatorID int `json:"creatorId" graphql:"noinput"` EmptyRepo bool `json:"emptyRepo" graphql:"noinput"` Archived bool `json:"archived" graphql:"noinput"` AvatarURL string `json:"avatarUrl" graphql:"noinput"` }
type GitlabWebhookId ¶
type GitlabWebhookId int
type RepoAccess ¶
type RepoAccess string
const ( RepoAccessReadOnly RepoAccess = "read" RepoAccessReadWrite RepoAccess = "read_write" )
type RepoReference ¶
type Repository ¶
type Repository struct { repos.BaseEntity `json:",inline" graphql:"noinput"` CreatedBy common.CreatedOrUpdatedBy `json:"createdBy" graphql:"noinput"` LastUpdatedBy common.CreatedOrUpdatedBy `json:"lastUpdatedBy" graphql:"noinput"` AccountName string `json:"accountName" graphql:"noinput"` Name string `json:"name"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.