Skip to content

Commit 58d1e8e

Browse files
authored
Merge pull request #92 from metal3d/develop
doc(refresh): Refresh doc after changing functions
2 parents 62b0576 + d0790f3 commit 58d1e8e

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

doc/docs/packages/generator.md

+18-18
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ var Version = "master" // changed at compile time
3838
## func [Convert](<https://github.com/metal3d/katenary/blob/develop/generator/converter.go#L93>)
3939

4040
```go
41-
func Convert(config ConvertOptions, dockerComposeFile ...string)
41+
func Convert(config ConvertOptions, dockerComposeFile ...string) error
4242
```
4343

4444
Convert a compose \(docker, podman...\) project to a helm chart. It calls Generate\(\) to generate the chart and then write it to the disk.
@@ -119,7 +119,7 @@ type ChartTemplate struct {
119119
```
120120

121121
<a name="ConfigMap"></a>
122-
## type [ConfigMap](<https://github.com/metal3d/katenary/blob/develop/generator/configMap.go#L36-L41>)
122+
## type [ConfigMap](<https://github.com/metal3d/katenary/blob/develop/generator/configMap.go#L37-L42>)
123123

124124
ConfigMap is a kubernetes ConfigMap. Implements the DataMap interface.
125125

@@ -131,7 +131,7 @@ type ConfigMap struct {
131131
```
132132

133133
<a name="NewConfigMap"></a>
134-
### func [NewConfigMap](<https://github.com/metal3d/katenary/blob/develop/generator/configMap.go#L45>)
134+
### func [NewConfigMap](<https://github.com/metal3d/katenary/blob/develop/generator/configMap.go#L46>)
135135

136136
```go
137137
func NewConfigMap(service types.ServiceConfig, appName string, forFile bool) *ConfigMap
@@ -140,7 +140,7 @@ func NewConfigMap(service types.ServiceConfig, appName string, forFile bool) *Co
140140
NewConfigMap creates a new ConfigMap from a compose service. The appName is the name of the application taken from the project name. The ConfigMap is filled by environment variables and labels "map\-env".
141141

142142
<a name="NewConfigMapFromDirectory"></a>
143-
### func [NewConfigMapFromDirectory](<https://github.com/metal3d/katenary/blob/develop/generator/configMap.go#L118>)
143+
### func [NewConfigMapFromDirectory](<https://github.com/metal3d/katenary/blob/develop/generator/configMap.go#L119>)
144144

145145
```go
146146
func NewConfigMapFromDirectory(service types.ServiceConfig, appName, path string) *ConfigMap
@@ -149,7 +149,7 @@ func NewConfigMapFromDirectory(service types.ServiceConfig, appName, path string
149149
NewConfigMapFromDirectory creates a new ConfigMap from a compose service. This path is the path to the file or directory. If the path is a directory, all files in the directory are added to the ConfigMap. Each subdirectory are ignored. Note that the Generate\(\) function will create the subdirectories ConfigMaps.
150150

151151
<a name="ConfigMap.AddBinaryData"></a>
152-
### func \(\*ConfigMap\) [AddBinaryData](<https://github.com/metal3d/katenary/blob/develop/generator/configMap.go#L154>)
152+
### func \(\*ConfigMap\) [AddBinaryData](<https://github.com/metal3d/katenary/blob/develop/generator/configMap.go#L155>)
153153

154154
```go
155155
func (c *ConfigMap) AddBinaryData(key string, value []byte)
@@ -158,34 +158,34 @@ func (c *ConfigMap) AddBinaryData(key string, value []byte)
158158
AddBinaryData adds binary data to the configmap. Append or overwrite the value if the key already exists.
159159

160160
<a name="ConfigMap.AddData"></a>
161-
### func \(\*ConfigMap\) [AddData](<https://github.com/metal3d/katenary/blob/develop/generator/configMap.go#L149>)
161+
### func \(\*ConfigMap\) [AddData](<https://github.com/metal3d/katenary/blob/develop/generator/configMap.go#L150>)
162162

163163
```go
164164
func (c *ConfigMap) AddData(key, value string)
165165
```
166166

167167
AddData adds a key value pair to the configmap. Append or overwrite the value if the key already exists.
168168

169-
<a name="ConfigMap.AppendFile"></a>
170-
### func \(\*ConfigMap\) [AppendFile](<https://github.com/metal3d/katenary/blob/develop/generator/configMap.go#L209>)
169+
<a name="ConfigMap.AppendDir"></a>
170+
### func \(\*ConfigMap\) [AppendDir](<https://github.com/metal3d/katenary/blob/develop/generator/configMap.go#L164>)
171171

172172
```go
173-
func (c *ConfigMap) AppendFile(path string)
173+
func (c *ConfigMap) AppendDir(path string) error
174174
```
175175

176+
AddFile adds files from given path to the configmap. It is not recursive, to add all files in a directory, you need to call this function for each subdirectory.
176177

177-
178-
<a name="ConfigMap.AppenddDir"></a>
179-
### func \(\*ConfigMap\) [AppenddDir](<https://github.com/metal3d/katenary/blob/develop/generator/configMap.go#L163>)
178+
<a name="ConfigMap.AppendFile"></a>
179+
### func \(\*ConfigMap\) [AppendFile](<https://github.com/metal3d/katenary/blob/develop/generator/configMap.go#L211>)
180180

181181
```go
182-
func (c *ConfigMap) AppenddDir(path string)
182+
func (c *ConfigMap) AppendFile(path string) error
183183
```
184184

185-
AddFile adds files from given path to the configmap. It is not recursive, to add all files in a directory, you need to call this function for each subdirectory.
185+
186186

187187
<a name="ConfigMap.Filename"></a>
188-
### func \(\*ConfigMap\) [Filename](<https://github.com/metal3d/katenary/blob/develop/generator/configMap.go#L232>)
188+
### func \(\*ConfigMap\) [Filename](<https://github.com/metal3d/katenary/blob/develop/generator/configMap.go#L235>)
189189

190190
```go
191191
func (c *ConfigMap) Filename() string
@@ -194,7 +194,7 @@ func (c *ConfigMap) Filename() string
194194
Filename returns the filename of the configmap. If the configmap is used for files, the filename contains the path.
195195

196196
<a name="ConfigMap.SetData"></a>
197-
### func \(\*ConfigMap\) [SetData](<https://github.com/metal3d/katenary/blob/develop/generator/configMap.go#L242>)
197+
### func \(\*ConfigMap\) [SetData](<https://github.com/metal3d/katenary/blob/develop/generator/configMap.go#L245>)
198198

199199
```go
200200
func (c *ConfigMap) SetData(data map[string]string)
@@ -203,7 +203,7 @@ func (c *ConfigMap) SetData(data map[string]string)
203203
SetData sets the data of the configmap. It replaces the entire data.
204204

205205
<a name="ConfigMap.Yaml"></a>
206-
### func \(\*ConfigMap\) [Yaml](<https://github.com/metal3d/katenary/blob/develop/generator/configMap.go#L247>)
206+
### func \(\*ConfigMap\) [Yaml](<https://github.com/metal3d/katenary/blob/develop/generator/configMap.go#L250>)
207207

208208
```go
209209
func (c *ConfigMap) Yaml() ([]byte, error)
@@ -430,7 +430,7 @@ func (d *Deployment) Yaml() ([]byte, error)
430430
Yaml returns the yaml representation of the deployment.
431431

432432
<a name="FileMapUsage"></a>
433-
## type [FileMapUsage](<https://github.com/metal3d/katenary/blob/develop/generator/configMap.go#L20>)
433+
## type [FileMapUsage](<https://github.com/metal3d/katenary/blob/develop/generator/configMap.go#L21>)
434434

435435
FileMapUsage is the usage of the filemap.
436436

0 commit comments

Comments
 (0)