Documentation ¶
Index ¶
- func EnvVar(key string) string
- func EnvVarInBash(key string) string
- func EnvVarInDocker(key string) string
- func GetDockerfileTemplate(d Dockerfile) string
- func ToEnumDefines(name string, enum enumeration.Enum) []byte
- type ClientEnumsFile
- type ClientFile
- func (c *ClientFile) AddOp(op operator.Op)
- func (c *ClientFile) String() string
- func (c *ClientFile) WriteAll() string
- func (c *ClientFile) WriteImports(w io.Writer) (err error)
- func (c *ClientFile) WriteOperations(w io.Writer) (err error)
- func (c *ClientFile) WritePackage(w io.Writer) (err error)
- func (c *ClientFile) WriteTypeInstance(w io.Writer) (err error)
- func (c *ClientFile) WriteTypeInterface(w io.Writer) (err error)
- type ConfigDefaultFile
- type Dockerfile
- func (d Dockerfile) AddContent(from string, to string) *Dockerfile
- func (d Dockerfile) AddEnv(key string, value string) *Dockerfile
- func (d Dockerfile) AddLabel(label string, content string) *Dockerfile
- func (d *Dockerfile) String() string
- func (d Dockerfile) WithCmd(cmd ...string) *Dockerfile
- func (d Dockerfile) WithExpose(exposes ...string) *Dockerfile
- func (d Dockerfile) WithVolume(volumes ...string) *Dockerfile
- func (d Dockerfile) WithWorkDir(dir string) *Dockerfile
- type Enum
- func (e *Enum) ConstKey(key interface{}) string
- func (e *Enum) ConstOffset() string
- func (e *Enum) ConstPrefix() string
- func (e *Enum) ConstUnknown() string
- func (e *Enum) InvalidErrorString() string
- func (e *Enum) String() string
- func (e *Enum) WriteAll() string
- func (e *Enum) WriteEnumDefinition(w io.Writer) (err error)
- func (e *Enum) WriteEnumDescriptor(w io.Writer) (err error)
- func (e *Enum) WriteImports(w io.Writer) (err error)
- func (e *Enum) WriteInitFunc(w io.Writer) (err error)
- func (e *Enum) WriteLabeler(w io.Writer) (err error)
- func (e *Enum) WritePackage(w io.Writer) (err error)
- func (e *Enum) WriteParseFromLabelStringFunc(w io.Writer) (err error)
- func (e *Enum) WriteParseFromStringFunc(w io.Writer) (err error)
- func (e *Enum) WriteScannerAndValuer(w io.Writer) (err error)
- func (e *Enum) WriteStringer(w io.Writer) (err error)
- func (e *Enum) WriteTextMarshalerAndUnmarshaler(w io.Writer) (err error)
- func (e *Enum) WriteVars(w io.Writer) (err error)
- type ErrCodeFile
- type GoFile
- type ModFile
- type ModReplace
- type ModRequired
- type TypesFile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnvVarInBash ¶
func EnvVarInDocker ¶
func GetDockerfileTemplate ¶
func GetDockerfileTemplate(d Dockerfile) string
func ToEnumDefines ¶
func ToEnumDefines(name string, enum enumeration.Enum) []byte
Types ¶
type ClientEnumsFile ¶
type ClientEnumsFile struct { PackageName string Importer *importer.PackageImporter // contains filtered or unexported fields }
func NewClientEnumsFile ¶
func NewClientEnumsFile(outputPath, serviceName string, a *oas.OpenAPI) *ClientEnumsFile
func (*ClientEnumsFile) String ¶
func (f *ClientEnumsFile) String() string
func (*ClientEnumsFile) WriteAll ¶
func (f *ClientEnumsFile) WriteAll() string
func (*ClientEnumsFile) WriteImports ¶
func (f *ClientEnumsFile) WriteImports(w io.Writer) (err error)
func (*ClientEnumsFile) WritePackage ¶
func (f *ClientEnumsFile) WritePackage(w io.Writer) (err error)
type ClientFile ¶
type ClientFile struct { ClientName string PackageName string Name string Importer *importer.PackageImporter // contains filtered or unexported fields }
func NewClientFile ¶
func NewClientFile(name string, a *oas.OpenAPI) *ClientFile
func (*ClientFile) AddOp ¶
func (c *ClientFile) AddOp(op operator.Op)
func (*ClientFile) String ¶
func (c *ClientFile) String() string
func (*ClientFile) WriteAll ¶
func (c *ClientFile) WriteAll() string
func (*ClientFile) WriteImports ¶
func (c *ClientFile) WriteImports(w io.Writer) (err error)
func (*ClientFile) WriteOperations ¶
func (c *ClientFile) WriteOperations(w io.Writer) (err error)
func (*ClientFile) WritePackage ¶
func (c *ClientFile) WritePackage(w io.Writer) (err error)
func (*ClientFile) WriteTypeInstance ¶
func (c *ClientFile) WriteTypeInstance(w io.Writer) (err error)
func (*ClientFile) WriteTypeInterface ¶
func (c *ClientFile) WriteTypeInterface(w io.Writer) (err error)
type ConfigDefaultFile ¶
func NewConfigDefaultFile ¶
func NewConfigDefaultFile(envVars []envconfig.EnvVar) *ConfigDefaultFile
func (*ConfigDefaultFile) String ¶
func (f *ConfigDefaultFile) String() string
type Dockerfile ¶
type Dockerfile struct { From string `docker:"FROM" yaml:"from,omitempty"` Image string `yaml:"image"` Label map[string]string `docker:"LABEL,multi" yaml:"label,omitempty"` Run string `docker:"RUN,inline" yaml:"run,omitempty"` WorkDir string `docker:"WORKDIR" yaml:"workdir,omitempty"` Env map[string]string `docker:"ENV,multi" yaml:"env,omitempty"` Add map[string]string `docker:"ADD,join" yaml:"add,omitempty"` Expose []string `docker:"EXPOSE" yaml:"expose,omitempty"` Volume []string `docker:"VOLUME,array" yaml:"volume,omitempty"` Cmd []string `docker:"CMD,array" yaml:"cmd,omitempty"` EntryPoint []string `docker:"ENTRYPOINT,array" yaml:"entrypoint,omitempty"` }
func (Dockerfile) AddContent ¶
func (d Dockerfile) AddContent(from string, to string) *Dockerfile
func (Dockerfile) AddEnv ¶
func (d Dockerfile) AddEnv(key string, value string) *Dockerfile
func (Dockerfile) AddLabel ¶
func (d Dockerfile) AddLabel(label string, content string) *Dockerfile
func (*Dockerfile) String ¶
func (d *Dockerfile) String() string
func (Dockerfile) WithCmd ¶
func (d Dockerfile) WithCmd(cmd ...string) *Dockerfile
func (Dockerfile) WithExpose ¶
func (d Dockerfile) WithExpose(exposes ...string) *Dockerfile
func (Dockerfile) WithVolume ¶
func (d Dockerfile) WithVolume(volumes ...string) *Dockerfile
func (Dockerfile) WithWorkDir ¶
func (d Dockerfile) WithWorkDir(dir string) *Dockerfile
type Enum ¶
type Enum struct { PackagePath string PackageName string Name string Options scanner.Enum Importer *importer.PackageImporter HasOffset bool }
func (*Enum) ConstOffset ¶
func (*Enum) ConstPrefix ¶
func (*Enum) ConstUnknown ¶
func (*Enum) InvalidErrorString ¶
func (*Enum) WriteParseFromLabelStringFunc ¶
func (*Enum) WriteParseFromStringFunc ¶
func (*Enum) WriteTextMarshalerAndUnmarshaler ¶
type ErrCodeFile ¶
type ErrCodeFile struct { PackageName string Importer *importer.PackageImporter // contains filtered or unexported fields }
func NewErrCodeFile ¶
func NewErrCodeFile(pkgName string, errCodes status_error.StatusErrorCodeMap) *ErrCodeFile
func (*ErrCodeFile) String ¶
func (c *ErrCodeFile) String() string
func (*ErrCodeFile) WriteAll ¶
func (c *ErrCodeFile) WriteAll() string
func (*ErrCodeFile) WriteImports ¶
func (c *ErrCodeFile) WriteImports(w io.Writer) (err error)
func (*ErrCodeFile) WritePackage ¶
func (c *ErrCodeFile) WritePackage(w io.Writer) (err error)
type GoFile ¶
type GoFile struct { PackageName string FileFullName string *importer.PackageImporter // contains filtered or unexported fields }
type ModFile ¶
type ModFile struct {
// contains filtered or unexported fields
}
func NewModFile ¶
func (*ModFile) AddReplace ¶
func (*ModFile) AddRequired ¶
type ModReplace ¶
type ModReplace struct {
// contains filtered or unexported fields
}
func NewModReplace ¶
func NewModReplace(fromPkg, fromVer, toPkg, toVer string) ModReplace
func (ModReplace) String ¶
func (r ModReplace) String() string
type ModRequired ¶
type ModRequired struct {
// contains filtered or unexported fields
}
func NewModRequired ¶
func NewModRequired(pkg, ver string) ModRequired
func (ModRequired) String ¶
func (r ModRequired) String() string
type TypesFile ¶
type TypesFile struct { PackageName string Importer *importer.PackageImporter // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.