git

package
v0.0.0-...-7b10b66 Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: Apache-2.0 Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package git contains the git functions

Package git contains the git functions

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	// GetRepo will find the remote repo or error
	GetRepo(context.Context, string, string) (*github.Repository, *github.Response, error)

	// CreateRepo will create a repo based on the params
	CreateRepo(context.Context, string, *v1alpha1.Repository) error

	// DeleteRepo will delete the repo
	DeleteRepo(context.Context, string, string) error

	// GetKey will find the remote key or error
	GetKey(context.Context, string, string, int64) (*github.Key, *github.Response, error)

	// CreateKey will create a key in the repo based on the params
	CreateKey(context.Context, string, string, *v1alpha1.Key, *corev1.Secret) (*github.Key, error)

	// DeleteKey will delete the key from the repo
	DeleteKey(context.Context, string, string, int64) error
}

Client defines the interface to use with the controllers

func New

func New(ctx context.Context, token string) (cl Client, err error)

New creates a new git client

func TestClient

func TestClient() Client

TestClient will generate a test stub

Jump to

Keyboard shortcuts

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