Documentation
¶
Index ¶
Constants ¶
View Source
const ( DubboLogFile = ".dubbo/dubbo.log" Dockerfile = "Dockerfile" DataDir = ".dubbo" DefaultTemplate = "common" )
Variables ¶
View Source
var (
DockerfileByRuntime = map[string]string{
"go": golang,
"java": java,
}
)
Functions ¶
func Fingerprint ¶
func Fingerprint(dc *DubboConfig) (hash, log string, err error)
Types ¶
type DeploySpec ¶
type DubboConfig ¶
type DubboConfig struct { Root string `yaml:"-"` Name string `yaml:"name,omitempty" jsonschema:"pattern=^[a-z0-9]([-a-z0-9]*[a-z0-9])?$"` Image string `yaml:"image,omitempty"` ImageDigest string `yaml:"-"` Runtime string `yaml:"runtime,omitempty"` Template string `yaml:"template,omitempty"` Created time.Time `yaml:"created,omitempty"` Build BuildSpec `yaml:"build,omitempty"` Deploy DeploySpec `yaml:"deploy,omitempty"` }
func NewDubboConfig ¶
func NewDubboConfig(path string) (*DubboConfig, error)
func NewDubboConfigWithTemplate ¶
func NewDubboConfigWithTemplate(dc *DubboConfig, initialized bool) *DubboConfig
func (*DubboConfig) Built ¶
func (dc *DubboConfig) Built() bool
func (*DubboConfig) Initialized ¶
func (dc *DubboConfig) Initialized() bool
func (*DubboConfig) Stamp ¶
func (dc *DubboConfig) Stamp(oo ...stampOption) (err error)
func (*DubboConfig) Validate ¶
func (dc *DubboConfig) Validate() error
func (*DubboConfig) WriteDockerfile ¶
func (dc *DubboConfig) WriteDockerfile(cmd *cobra.Command) (err error)
func (*DubboConfig) WriteFile ¶
func (dc *DubboConfig) WriteFile() (err error)
Click to show internal directories.
Click to hide internal directories.