-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
81 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package writers | ||
|
||
import ( | ||
"fmt" | ||
"io" | ||
|
||
"github.com/gardener/docforge/pkg/api" | ||
) | ||
|
||
// DryRunWriter is implementation of Writer interface for writing blobs to the file system | ||
type DryRunWriter struct { | ||
Writer io.Writer | ||
Root string | ||
root *file | ||
} | ||
|
||
type file struct { | ||
name string | ||
indent int | ||
} | ||
|
||
type folder struct { | ||
file | ||
files []*file | ||
} | ||
|
||
func (f *DryRunWriter) Write(name, path string, docBlob []byte, node *api.Node) error { | ||
fmt.Printf("writing %s/%s\n", path, name) | ||
// TODO: write file/folder structure synchronizing parallel write requests | ||
// into a single hierarchy | ||
return nil | ||
} |