Help us shape the future of Go! Take the 2026 Go Developer Survey

codeclimateclient

package
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicResponse

type BasicResponse struct {
	ID         string `json:"id"`
	Attributes struct {
		TestReporterID string `json:"test_reporter_id"`
		GithubSlug     string `json:"github_slug"`
		VCSHost        string `json:"vcs_host"`
		HumanName      string `json:"human_name"`
		Branch         string `json:"branch"`
	} `json:"attributes"`
	Links struct {
		Self                 string `json:"self"`
		Services             string `json:"services"`
		WebCoverage          string `json:"web_coverage"`
		WebIssues            string `json:"web_issues"`
		MaintainabilityBadge string `json:"maintainability_badge"`
		TestCoverageBadge    string `json:"test_coverage_badge"`
	} `json:"links"`
	Relationships struct {
		Account struct {
			Data struct {
				ID string `json:"id"`
			} `json:"data"`
		} `json:"account"`
	} `json:"relationships"`
}

type Client

type Client struct {
	ApiKey  string
	BaseUrl string
}

func (*Client) CreateOrganizationRepository

func (client *Client) CreateOrganizationRepository(organizationID string, url string) (*Repository, error)

func (*Client) DeleteOrganizationRepository

func (client *Client) DeleteOrganizationRepository(repositoryID string) error

func (*Client) GetOrganization

func (client *Client) GetOrganization(organizationName string) (*Organization, error)

func (*Client) GetRepository

func (client *Client) GetRepository(repositorySlug string) (*Repository, error)

func (*Client) GetRepositoryById

func (client *Client) GetRepositoryById(repositoryId string) (*Repository, error)

type Organization

type Organization struct {
	Id   string
	Name string
}

type Repository

type Repository struct {
	Id                       string
	TestReporterId           string
	GithubSlug               string
	Organization             string
	RepositoryURL            string
	HumanName                string
	Branch                   string
	Attributes               string
	LinkServices             string
	LinkSelf                 string
	LinkWebCoverage          string
	LinkWebIssues            string
	LinkMaintainabilityBadge string
	LinkTestCoverageBadge    string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL