service

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArtifactCache

type ArtifactCache struct {
	HttpClient api.RESTClient
	// contains filtered or unexported fields
}

func (*ArtifactCache) DeleteCaches

func (a *ArtifactCache) DeleteCaches(queryParams url.Values) (int, error)

func (*ArtifactCache) GetCacheUsage

func (a *ArtifactCache) GetCacheUsage() (float64, error)

func (*ArtifactCache) ListAllCaches

func (a *ArtifactCache) ListAllCaches(queryParams url.Values, key string) ([]types.ActionsCache, error)

func (*ArtifactCache) ListCaches

func (a *ArtifactCache) ListCaches(queryParams url.Values) (types.ListApiResponse, error)

type ArtifactCacheService

type ArtifactCacheService interface {
	GetCacheUsage() (float64, error)
	ListCaches(queryParams url.Values) (types.ListApiResponse, error)
	DeleteCaches(queryParams url.Values) (int, error)
	ListAllCaches(queryParams url.Values, key string) ([]types.ActionsCache, error)
}

func NewArtifactCache

func NewArtifactCache(repo ghRepo.Repository, command string, version string) (ArtifactCacheService, error)

Jump to

Keyboard shortcuts

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