github

package module
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package github includes all of the client calls to github for building automation tools for deploystack

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repo added in v1.8.0

type Repo struct {
	Name   string `json:"name" yaml:"name"`
	Owner  string `json:"owner" yaml:"owner"`
	Branch string `json:"branch" yaml:"branch"`
}

Repo contains the details of a github repo for the purpose of downloading

func NewRepo added in v1.8.0

func NewRepo(repo string) Repo

NewRepo generates Github from a url that might contain branch information

func (Repo) Clone added in v1.8.0

func (r Repo) Clone(path string) error

Clone performs a git clone to the directory of our choosing

func (Repo) Path added in v1.8.0

func (r Repo) Path(path string) string

Path returns where this repo should exist locally given the input path

func (Repo) ReferenceName added in v1.8.0

func (r Repo) ReferenceName() string

func (Repo) URL added in v1.8.0

func (r Repo) URL() string

Jump to

Keyboard shortcuts

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