storage

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Archive

type Archive = runtime.ResponseFile

type LoadArchiveOptions

type LoadArchiveOptions struct {
	Hostname    string
	Namespace   string
	Type        string
	Filename    string
	Shasum      string
	DownloadURL string
}

type Service

type Service interface {
	// LoadArchive loads the archive from the storage.
	LoadArchive(context.Context, LoadArchiveOptions) (Archive, error)
}

Service holds the operation of provider storage. Takes a look of the filesystem layer structure: {hostname} └── {namespace}

└── {type}
 └── terraform-provider-{type}_{version}_{os}_{arch}.zip

func NewService

func NewService(dir string) (Service, error)

Jump to

Keyboard shortcuts

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