Documentation
¶
Index ¶
- Constants
- Variables
- func FilesystemFromRepo(uri string) (util.Filesystem, error)
- type BuildOption
- type BuildOptions
- type Builder
- type Client
- func (c *Client) Build(ctx context.Context, dc *dubbo.DubboConfig, options ...BuildOption) (*dubbo.DubboConfig, error)
- func (c *Client) Deploy(ctx context.Context, dc *dubbo.DubboConfig, opts ...DeployOption) (*dubbo.DubboConfig, error)
- func (c *Client) Initialize(dcfg *dubbo.DubboConfig, initialized bool, cmd *cobra.Command) (*dubbo.DubboConfig, error)
- func (c *Client) Push(ctx context.Context, dc *dubbo.DubboConfig) (*dubbo.DubboConfig, error)
- func (c *Client) Repositories() *Repositories
- func (c *Client) Runtimes() ([]string, error)
- func (c *Client) Templates() *Templates
- type DeployOption
- type DeployParams
- type Deployer
- type DeploymentResult
- type Option
- type Pusher
- type Repositories
- type Repository
- func (r *Repository) Runtime(name string) (runtime Runtime, err error)
- func (r *Repository) Template(runtimeName, name string) (t Template, err error)
- func (r *Repository) Templates(runtimeName string) ([]Template, error)
- func (r *Repository) URL() string
- func (r *Repository) Write(dest string) (err error)
- type Runtime
- type Status
- type Template
- type Templates
Constants ¶
View Source
const DefaultRepositoryName = "default"
Variables ¶
View Source
var EmbeddedTemplatesFS = newEmbeddedTemplatesFS()
Functions ¶
func FilesystemFromRepo ¶
func FilesystemFromRepo(uri string) (util.Filesystem, error)
Types ¶
type BuildOption ¶
type BuildOption func(c *BuildOptions)
type BuildOptions ¶
type BuildOptions struct{}
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Build ¶
func (c *Client) Build(ctx context.Context, dc *dubbo.DubboConfig, options ...BuildOption) (*dubbo.DubboConfig, error)
func (*Client) Deploy ¶
func (c *Client) Deploy(ctx context.Context, dc *dubbo.DubboConfig, opts ...DeployOption) (*dubbo.DubboConfig, error)
func (*Client) Initialize ¶
func (c *Client) Initialize(dcfg *dubbo.DubboConfig, initialized bool, cmd *cobra.Command) (*dubbo.DubboConfig, error)
func (*Client) Push ¶
func (c *Client) Push(ctx context.Context, dc *dubbo.DubboConfig) (*dubbo.DubboConfig, error)
func (*Client) Repositories ¶
func (c *Client) Repositories() *Repositories
type DeployOption ¶
type DeployOption func(f *DeployParams)
type DeployParams ¶
type DeployParams struct {
// contains filtered or unexported fields
}
type Deployer ¶
type Deployer interface {
Deploy(context.Context, *dubbo.DubboConfig, ...DeployOption) (DeploymentResult, error)
}
type DeploymentResult ¶
type Option ¶
type Option func(client *Client)
func WithBuilder ¶
func WithDeployer ¶
func WithPusher ¶
func WithRepositoriesPath ¶
type Repositories ¶
type Repositories struct {
// contains filtered or unexported fields
}
func (*Repositories) All ¶
func (r *Repositories) All() (repos []Repository, err error)
func (*Repositories) Get ¶
func (r *Repositories) Get(name string) (repo Repository, err error)
func (*Repositories) Remove ¶
func (r *Repositories) Remove(name string) error
type Repository ¶
func NewRepository ¶
func NewRepository(name, uri string) (r Repository, err error)
func (*Repository) Template ¶
func (r *Repository) Template(runtimeName, name string) (t Template, err error)
func (*Repository) Templates ¶
func (r *Repository) Templates(runtimeName string) ([]Template, error)
func (*Repository) URL ¶
func (r *Repository) URL() string
func (*Repository) Write ¶
func (r *Repository) Write(dest string) (err error)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.