MCPcopy
hub / github.com/opentofu/opentofu / Client

Interface Client

internal/states/remote/remote.go:17–21  ·  view source on GitHub ↗

Client is the interface that must be implemented for a remote state driver. It supports dumb put/get/delete, and the higher level structs handle persisting the state properly here.

Source from the content-addressed store, hash-verified

15// driver. It supports dumb put/get/delete, and the higher level structs
16// handle persisting the state properly here.
17type Client interface {
18 Get(context.Context) (*Payload, error)
19 Put(context.Context, []byte) error
20 Delete(context.Context) error
21}
22
23// ClientForcePusher is an optional interface that allows a remote
24// state to force push by managing a flag on the client that is

Callers 24

getWithGoGetterMethod · 0.95
downloadProtocFunction · 0.65
ModulePackageLocationMethod · 0.65
InstallModulePackageMethod · 0.65
mockRegHandlerFunction · 0.65
ApplyMovesFunction · 0.65
ValidateMovesFunction · 0.65
collectInitialStatusesFunction · 0.65

Implementers 15

ResourceStoreinternal/command/testing/test_provider
remoteClientinternal/backend/remote/backend_state.
remoteClientinternal/backend/remote-state/cos/clie
httpClientinternal/backend/remote-state/http/cli
RemoteClientinternal/backend/remote-state/azure/cl
RemoteClientinternal/backend/remote-state/consul/c
remoteClientinternal/backend/remote-state/gcs/clie
RemoteClientinternal/backend/remote-state/kubernet
RemoteClientinternal/backend/remote-state/inmem/cl
RemoteClientinternal/backend/remote-state/oss/clie
RemoteClientinternal/backend/remote-state/s3/clien
RemoteClientinternal/backend/remote-state/pg/clien

Calls

no outgoing calls

Tested by

no test coverage detected