github

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2020 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewReleaseChecksumManager

func NewReleaseChecksumManager(client *github.Client, releaseOwner, releaseRepository string, release *github.RepositoryRelease) checksum.Manager

Types

type ClientFactory

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

func NewClientFactory added in v0.3.0

func NewClientFactory(log *logrus.Logger, httpClientFactory func() *http.Client) *ClientFactory

func (ClientFactory) Get

func (cf ClientFactory) Get(ctx context.Context, lookupRef service.LookupRef) (*github.Client, error)

type CommitRef

type CommitRef struct {
	service.RefMetadataService
	// contains filtered or unexported fields
}

func (*CommitRef) CanonicalRef added in v0.4.0

func (r *CommitRef) CanonicalRef() service.Ref

func (*CommitRef) ResolveResource

func (r *CommitRef) ResolveResource(ctx context.Context, resourceType service.ResourceType, resource service.ResourceName) ([]service.ResolvedResource, error)

type ReleaseRef

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

func (*ReleaseRef) CanonicalRef added in v0.4.0

func (r *ReleaseRef) CanonicalRef() service.Ref

func (*ReleaseRef) GetMetadata

func (r *ReleaseRef) GetMetadata() []service.RefMetadata

func (*ReleaseRef) ResolveResource

func (r *ReleaseRef) ResolveResource(ctx context.Context, resourceType service.ResourceType, resource service.ResourceName) ([]service.ResolvedResource, error)

type Service

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

func NewService

func NewService(log *logrus.Logger, clientFactory *ClientFactory) *Service

func (Service) IsRefSupported added in v0.3.0

func (s Service) IsRefSupported(_ context.Context, lookupRef service.LookupRef) bool

func (Service) ResolveRef

func (s Service) ResolveRef(ctx context.Context, lookupRef service.LookupRef) (service.ResolvedRef, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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