Documentation ¶
Index ¶
- Constants
- func GetSupportedBackends() []string
- func IsSupported(backend string) bool
- func NewTFCloudConfigReader(reader io.ReadCloser) *tfCloudConfigReader
- type AzureRMBackend
- type Backend
- type GSBackend
- type HTTPBackend
- type MockReaderMock
- type Options
- type S3Backend
- type TFCloudAttributes
- type TFCloudBackend
- type TFCloudBody
- type TFCloudData
Constants ¶
View Source
const BackendKeyAzureRM = "azurerm"
View Source
const BackendKeyFile = ""
View Source
const BackendKeyGS = "gs"
View Source
const BackendKeyHTTP = "http"
View Source
const BackendKeyHTTPS = "https"
View Source
const BackendKeyS3 = "s3"
View Source
const BackendKeyTFCloud = "tfcloud"
Variables ¶
This section is empty.
Functions ¶
func GetSupportedBackends ¶
func GetSupportedBackends() []string
func IsSupported ¶
func NewTFCloudConfigReader ¶
func NewTFCloudConfigReader(reader io.ReadCloser) *tfCloudConfigReader
Types ¶
type AzureRMBackend ¶ added in v0.21.0
type AzureRMBackend struct {
// contains filtered or unexported fields
}
func NewAzureRMReader ¶ added in v0.21.0
func NewAzureRMReader(path string, opts options.AzureRMBackendOptions) (*AzureRMBackend, error)
func (*AzureRMBackend) Close ¶ added in v0.21.0
func (s *AzureRMBackend) Close() error
type Backend ¶
type Backend io.ReadCloser
func GetBackend ¶
func GetBackend(config config.SupplierConfig, opts *Options) (Backend, error)
func NewFileReader ¶
type GSBackend ¶
type GSBackend struct {
// contains filtered or unexported fields
}
func NewGSReader ¶
type HTTPBackend ¶
type HTTPBackend struct {
// contains filtered or unexported fields
}
func NewHTTPReader ¶
func NewHTTPReader(client pkghttp.HTTPClient, rawURL string, opts *Options) (*HTTPBackend, error)
func (*HTTPBackend) Close ¶
func (h *HTTPBackend) Close() error
type MockReaderMock ¶
MockReaderMock is an autogenerated mock type for the ReaderMock type
func (*MockReaderMock) Close ¶
func (_m *MockReaderMock) Close() error
Close provides a mock function with given fields:
type S3Backend ¶
func NewS3Reader ¶
type TFCloudAttributes ¶
type TFCloudAttributes struct {
HostedStateDownloadUrl string `json:"hosted-state-download-url"`
}
type TFCloudBackend ¶
type TFCloudBackend struct {
// contains filtered or unexported fields
}
func NewTFCloudReader ¶
func NewTFCloudReader(workspacePath string, opts *Options) *TFCloudBackend
func (*TFCloudBackend) Close ¶
func (t *TFCloudBackend) Close() error
type TFCloudBody ¶
type TFCloudBody struct {
Data TFCloudData `json:"data"`
}
type TFCloudData ¶
type TFCloudData struct {
Attributes TFCloudAttributes `json:"attributes"`
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.