{"modulePath":"go.hein.dev/github-controller","version":"v0.0.0-20230516005555-7b10b66630b3","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package git\n\nPackage git contains the git functions\n\nPackage git contains the git functions\n\n## Types\n\n```go\ntype Client interface {\n\t// GetRepo will find the remote repo or error\n\tGetRepo(context.Context, string, string) (*github.Repository, *github.Response, error)\n\n\t// CreateRepo will create a repo based on the params\n\tCreateRepo(context.Context, string, *v1alpha1.Repository) error\n\n\t// DeleteRepo will delete the repo\n\tDeleteRepo(context.Context, string, string) error\n\n\t// GetKey will find the remote key or error\n\tGetKey(context.Context, string, string, int64) (*github.Key, *github.Response, error)\n\n\t// CreateKey will create a key in the repo based on the params\n\tCreateKey(context.Context, string, string, *v1alpha1.Key, *corev1.Secret) (*github.Key, error)\n\n\t// DeleteKey will delete the key from the repo\n\tDeleteKey(context.Context, string, string, int64) error\n}\n```\nClient defines the interface to use with the controllers\n\n```go\nfunc New(ctx context.Context, token string) (cl Client, err error)\n```\nNew creates a new git client\n\n```go\nfunc TestClient() Client\n```\nTestClient will generate a test stub\n\n","path":"go.hein.dev/github-controller/git","name":"git","synopsis":"Package git contains the git functions","isRedistributable":true}
