repos

package module
v0.0.0-...-89f4574 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2022 License: Apache-2.0 Imports: 10 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RepoList

type RepoList interface {
	// UpdateTrackedRepos, updates the list of trakced repositories, returns
	// true if the list changed, false otherwise
	UpdateTrackedRepos(context.Context) (bool, error)
	GetTrackedRepos() []TrackedRepository
}

RepoList describes a struct that tracks repositories

func NewBucketRepo

func NewBucketRepo(bucketName string, fileName string) RepoList

NewBucketRepo returns a RepoList based on GCS Buckets

type TrackedRepository

type TrackedRepository struct {
	Owner             string `json:"owner"`
	Name              string `json:"name"`
	DefaultBranch     string `json:"defaultBranch"`
	IsTrackingIssues  bool   `json:"isTrackingIssues"`
	IsTrackingSamples bool   `json:"isTrackingSamples"`
}

TrackedRepository represents a repository tracked by Maintner or Samplr

func (TrackedRepository) RepoSha

func (t TrackedRepository) RepoSha() string

RepoSha Creates a Sum224 of the TrackedRepository's name

func (TrackedRepository) String

func (t TrackedRepository) String() string

String returns the string representation of the TrackedRepository

Jump to

Keyboard shortcuts

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