A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://pkg.go.dev/github.com/terramate-io/terramate@v0.14.4/cloud/api/metadata below:

metadata package - github.com/terramate-io/terramate/cloud/api/metadata - Go Packages

Package metadata contains data structures for platform metadata that is sent to TMC, i.e. information about CI/CD environments, pull requests, VCS details. A large chunk of definitions can also be found in terramate/cloud/types.go.

How the metadata has been handled historically:

In the future, we would like to move away from this and use the following approach:

This section is empty.

This section is empty.

This section is empty.

type BitbucketActor struct {
	Type string         `json:"type,omitempty"`
	User *BitbucketUser `json:"user,omitempty"`
	
	Role     string `json:"role,omitempty"`
	Approved *bool  `json:"approved,omitempty"`
	
	State          string `json:"state,omitempty"`
	ParticipatedOn string `json:"participated_on,omitempty"`
}

BitbucketActor is a Bitbucket actor.

NewBitbucketActor returns a new BitbucketActor.

type BitbucketPullRequest struct {

	
	Participants []BitbucketActor `json:"participants,omitempty"`

	
	Reviewers []BitbucketUser `json:"reviewers,omitempty"`
}

BitbucketPullRequest is a Bitbuckt pull request.

NewBitbucketPullRequest returns a new BitbucketPullRequest.

type BitbucketUser struct {
	UUID        string `json:"uuid,omitempty"`
	DisplayName string `json:"display_name,omitempty"`
	AccountID   string `json:"account_id,omitempty"`
	Nickname    string `json:"nickname,omitempty"`
	AvatarURL   string `json:"avatar_url,omitempty"`
}

BitbucketUser is a Bitbucket user.

NewBitbucketUser returns a new BitbucketUser.

type CommitAuthor struct {
	Name  string     `json:"name,omitempty"`
	Email string     `json:"email,omitempty"`
	Time  *time.Time `json:"time,omitempty"`
}

CommitAuthor is a Github commit author.

NewCommitAuthor returns a new CommitAuthor.

type GithubCommit struct {
	
	GithubAuthor *GithubUser `json:"github_author,omitempty"`

	
	GitAuthor *CommitAuthor `json:"git_author,omitempty"`

	
	GithubCommitter *GithubUser `json:"github_committer,omitempty"`

	
	GitCommitter *CommitAuthor `json:"git_committer,omitempty"`
}

GithubCommit is a Github commit.

NewGithubCommit returns a new GithubCommit.

type GithubPullRequest struct {
	
	User *GithubUser `json:"user,omitempty"`
	
	HeadUser *GithubUser `json:"head_user,omitempty"`
	
	BaseUser *GithubUser `json:"base_user,omitempty"`

	RequestedReviewers []GithubUser `json:"requested_reviewers,omitempty"`
	RequestedTeams     []GithubTeam `json:"requested_teams,omitempty"`

	Reviews []GithubPullRequestReview `json:"reviews,omitempty"`

	Assignees []GithubUser `json:"assignees,omitempty"`
}

GithubPullRequest is a Github pull request.

NewGithubPullRequest returns a new GithubPullRequest.

type GithubPullRequestReview struct {
	ID          string      `json:"id,omitempty"`
	NodeID      string      `json:"node_id,omitempty"`
	User        *GithubUser `json:"user,omitempty"`
	SubmittedAt *time.Time  `json:"submitted_at,omitempty"`
	
	State             string `json:"state,omitempty"`
	AuthorAssociation string `json:"author_association,omitempty"`
}

GithubPullRequestReview is a Github pull request review.

NewGithubPullRequestReview returns a new GithubPullRequestReview.

type GithubTeam struct {
	ID     string `json:"id,omitempty"`
	NodeID string `json:"node_id,omitempty"`
	Name   string `json:"name,omitempty"`
	Slug   string `json:"slug,omitempty"`
}

GithubTeam is a Github team.

NewGithubTeam returns a new GithubTeam.

type GithubUser struct {
	ID         string `json:"id,omitempty"`
	NodeID     string `json:"node_id,omitempty"`
	Login      string `json:"author_login,omitempty"`
	Name       string `json:"author_gravatar_id,omitempty"`
	AvatarURL  string `json:"avatar_url,omitempty"`
	GravatarID string `json:"gravatar_id,omitempty"`
	Email      string `json:"email,omitempty"`
}

GithubUser is a Github user.

NewGithubUser returns a new GithubUser.

type GitlabMergeRequest struct {
	Author *GitlabUser `json:"user,omitempty"`

	DetailedMergeStatus string `json:"detailed_merge_status,omitempty"`

	
	Reviewers    []GitlabMergeRequestReviewer `json:"reviewers,omitempty"`
	Participants []GitlabUser                 `json:"participants,omitempty"`
	Assignees    []GitlabUser                 `json:"assignees,omitempty"`
}

GitlabMergeRequest is a Gitlab merge request.

NewGitlabMergeRequest is a Gitlab merge request.

type GitlabMergeRequestReviewer struct {
	User      *GitlabUser `json:"user,omitempty"`
	CreatedAt *time.Time  `json:"created_at,omitempty"`
	
	
	
	
	
	
	
	State string `json:"state,omitempty"`
}

GitlabMergeRequestReviewer is a Gitlab merge request reviewer.

NewGitlabMergeRequestReviewer returns a new GitlabMergeRequestReviewer.

type GitlabUser struct {
	ID        string `json:"id,omitempty"`
	Username  string `json:"username,omitempty"`
	Name      string `json:"name,omitempty"`
	WebURL    string `json:"web_url,omitempty"`
	AvatarURL string `json:"avatar_url,omitempty"`
}

GitlabUser is a Gitlab user.

NewGitlabUser returns a new GitlabUser.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4