Add account networks

Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
This commit is contained in:
bcmmbaga
2024-12-10 11:20:48 +01:00
parent 21eca7e1d1
commit 6a1eda1caa
3 changed files with 25 additions and 0 deletions

View File

@@ -17,3 +17,13 @@ func NewNetwork(accountId, name, description string) *Network {
Description: description,
}
}
// Copy returns a copy of a posture checks.
func (n *Network) Copy() *Network {
return &Network{
ID: n.ID,
AccountID: n.AccountID,
Name: n.Name,
Description: n.Description,
}
}