storage

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GithubPlanStorage

type GithubPlanStorage struct {
	Client            *github.Client
	Owner             string
	RepoName          string
	PullRequestNumber int
	ZipManager        utils.Zipper
}

func (*GithubPlanStorage) DeleteStoredPlan

func (gps *GithubPlanStorage) DeleteStoredPlan(storedPlanFilePath string) error

func (*GithubPlanStorage) DownloadLatestPlans

func (gps *GithubPlanStorage) DownloadLatestPlans() (string, error)

func (*GithubPlanStorage) PlanExists

func (gps *GithubPlanStorage) PlanExists(storedPlanFilePath string) (bool, error)

func (*GithubPlanStorage) RetrievePlan

func (gps *GithubPlanStorage) RetrievePlan(localPlanFilePath string, storedPlanFilePath string) (*string, error)

func (*GithubPlanStorage) StorePlan

func (gps *GithubPlanStorage) StorePlan(localPlanFilePath string, storedPlanFilePath string) error

type PlanStorageGcp

type PlanStorageGcp struct {
	Client  *storage.Client
	Bucket  *storage.BucketHandle
	Context context.Context
}

func (*PlanStorageGcp) DeleteStoredPlan

func (psg *PlanStorageGcp) DeleteStoredPlan(storedPlanFilePath string) error

func (*PlanStorageGcp) PlanExists

func (psg *PlanStorageGcp) PlanExists(storedPlanFilePath string) (bool, error)

func (*PlanStorageGcp) RetrievePlan

func (psg *PlanStorageGcp) RetrievePlan(localPlanFilePath string, storedPlanFilePath string) (*string, error)

func (*PlanStorageGcp) StorePlan

func (psg *PlanStorageGcp) StorePlan(localPlanFilePath string, storedPlanFilePath string) error

Jump to

Keyboard shortcuts

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