public

package
v0.0.0-...-1fc5b01 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2021 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 Public

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

Public struct defines fields in github-public object

func New

func New(target config.Target) (*Public, error)

New returns a new github-public object

func (Public) Authenticate

func (public Public) Authenticate() (bool, error)

Authenticate checks the account ID and access tokens' validity for the kind defined

func (Public) Credentials

func (public Public) Credentials() (string, string, error)

Credentials fetches amd returns the accountID and accessToken from environment variables

func (Public) SyncCheck

func (public Public) SyncCheck(repos []common.Repository) []common.Repository

SyncCheck checks whether the repository is already present at the target If it is, then only a sync is done, else a new repository is created at the target

Jump to

Keyboard shortcuts

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