github_target

package
v0.0.0-...-8ce5dc5 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommitData

type CommitData struct {
	Message   string           `json:"message"`
	Content   string           `json:"content"`
	Branch    string           `json:"branch"`
	SHA       string           `json:"sha,omitempty"`
	Committer CommitDataAuthor `json:"committer"`
}

type CommitDataAuthor

type CommitDataAuthor struct {
	Name  string `json:"name"`
	Email string `json:"email"`
}

type GithubRepository

type GithubRepository struct {
	// contains filtered or unexported fields
}

GithubRepository commits to a GitHub repository using the GitHub REST Commits APIs

func NewAPIClient

func NewAPIClient(uri string, projectID string, credentials string) *GithubRepository

NewAPIClient creates a GithubRepository instance

func (*GithubRepository) Commit

func (gh *GithubRepository) Commit(payload *targets.CommitPayload) error

func (*GithubRepository) Get

func (gh *GithubRepository) Get(path string, ref string) ([]byte, error)

Jump to

Keyboard shortcuts

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