gitlab

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientFactory

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

func NewClientFactory

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

func (ClientFactory) Get

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

type CommitRef

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

func (*CommitRef) CanonicalRef added in v0.4.0

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

func (*CommitRef) GetMetadata added in v0.5.0

func (r *CommitRef) GetMetadata(ctx context.Context) (service.RefMetadata, error)

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(ctx context.Context) (service.RefMetadata, error)

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) IsDetectedServer added in v0.5.2

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

func (Service) IsKnownServer added in v0.5.2

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

func (Service) ResolveRef

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

func (Service) ServiceName added in v0.5.2

func (s Service) ServiceName() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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