Implement missing methods
This commit is contained in:
parent
7f2c78ba97
commit
170d9bc6d0
1 changed files with 18 additions and 12 deletions
|
@ -47,17 +47,23 @@ class TerraformBackendGit(Validateable, CredentialMappingDefault):
|
||||||
def is_local_state(self):
|
def is_local_state(self):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
# ToDo:
|
def __make_http_backend_address__(self) -> str:
|
||||||
def __bucket_key__(self):
|
# TODO Should we make this configurable?
|
||||||
pass
|
base_string = "http://localhost:6061/?type=git"
|
||||||
|
return f"{base_string}&repository={self.git_backend_repo}&ref={self.git_backend_ref}&state={self.stage}/{self.module}/{self.git_backend_state}.json"
|
||||||
|
|
||||||
# ToDo:
|
# TODO: Implement ssh auth too
|
||||||
def __make_http_backend_address__(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
# ToDo:
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def get_mapping_default():
|
def get_mapping_default(cls) -> List[Dict[str, str]]:
|
||||||
pass
|
return [
|
||||||
|
{
|
||||||
|
"gopass_path": "server/meissa/repo/terraform-backend-git-test",
|
||||||
|
"gopass_field": "user",
|
||||||
|
"name": "git_backend_username",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"gopass_path": "server/meissa/repo/terraform-backend-git-test",
|
||||||
|
"gopass_field": "token",
|
||||||
|
"name": "git_backend_token",
|
||||||
|
},
|
||||||
|
]
|
||||||
|
|
Loading…
Reference in a new issue