supergit

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(baseURL string) *Client

type CommitResponse

type CommitResponse struct {
	Commit struct {
		CommitSHA string `json:"commit_sha"`
	} `json:"commit"`
	Result struct {
		NewSHA string `json:"new_sha"`
	} `json:"result"`
}

type GetCommitResponse

type GetCommitResponse struct {
	CommitSHA string `json:"commit_sha"`
}

type ListFilesResponse

type ListFilesResponse struct {
	Paths []string `json:"paths"`
	Ref   string   `json:"ref"`
}

type Provider

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

func NewProvider

func NewProvider() (*Provider, error)

func (*Provider) Commit

func (p *Provider) Commit(ctx context.Context, repoID string, options provider.CommitOptions) (string, error)

func (*Provider) CreateRepository

func (p *Provider) CreateRepository(ctx context.Context, repoID string) (*provider.Repository, error)

func (*Provider) DeleteRepository

func (p *Provider) DeleteRepository(ctx context.Context, repoID string) error

func (*Provider) GetFile

func (p *Provider) GetFile(ctx context.Context, repoID string, path string) (io.ReadCloser, error)

func (*Provider) GetRepositoryID

func (p *Provider) GetRepositoryID(options provider.RepositoryOptions) string

func (*Provider) Head

func (p *Provider) Head(ctx context.Context, repoID string) (string, error)

func (*Provider) ListFiles

func (p *Provider) ListFiles(ctx context.Context, repoID string) ([]string, error)

func (*Provider) Name

func (p *Provider) Name() string

type RepoRequest

type RepoRequest struct {
	ID            string `json:"id"`
	DefaultBranch string `json:"default_branch"`
}

type RepoResponse

type RepoResponse struct {
	ID            string `json:"id"`
	DefaultBranch string `json:"default_branch"`
}

Jump to

Keyboard shortcuts

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