mirror of
https://github.com/thegeeklab/wp-opentofu.git
synced 2024-11-24 23:30:39 +00:00
Describe some public struct and func
This commit is contained in:
parent
ee00b3d8ab
commit
779aa5abaa
@ -34,6 +34,7 @@ type (
|
|||||||
VarFiles []string
|
VarFiles []string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Netrc is credentials for cloning
|
||||||
Netrc struct {
|
Netrc struct {
|
||||||
Machine string
|
Machine string
|
||||||
Login string
|
Login string
|
||||||
|
@ -53,6 +53,7 @@ func downloadFile(filepath string, url string) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Unzip a file to a destination
|
||||||
func Unzip(src, dest string) error {
|
func Unzip(src, dest string) error {
|
||||||
r, err := zip.OpenReader(src)
|
r, err := zip.OpenReader(src)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user