Implement missing methods

This commit is contained in:
patdyn 2024-06-27 11:42:09 +02:00
parent 7f2c78ba97
commit 170d9bc6d0

View file

@ -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",
},
]