deploy

package
v0.0.0-...-8bfe3b3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// ID of Deploy account.
	ID string `yaml:"id"`
	// Password of Deploy account.
	Password string `yaml:"password"`
	// DomainID is ID of keystone domain used for authentication.
	DomainID string `yaml:"domain_id"`
	// ProjectID is ID of keystone project used for authentication.
	ProjectID string `yaml:"project_id"`
	// DomainName is Name of keystone domain used for authentication.
	DomainName string `yaml:"domain_name"`
	// ProjectName is Name of keystone project used for authentication.
	ProjectName string `yaml:"project_name"`
	// AuthURL defines authentication URL.
	AuthURL string `yaml:"auth_url"`
	// Endpoint of API Server.
	Endpoint string `yaml:"endpoint"`
	// InSecure https connection to endpoint
	InSecure bool `yaml:"insecure"`
	// Resource type to be managed.
	ResourceType string `yaml:"resource_type,omitempty"`
	// UUID of resource to be managed.
	ResourceID string `yaml:"resource_id,omitempty"`
	// Action to the performed with the resource (values: create, update, delete).
	Action string `yaml:"resource_action,omitempty"`
	// Provisioning tool used to provision the resource (values: ansible, helm).
	ProvisionerType string `yaml:"provisioner_type,omitempty"`
	// Logging level
	LogLevel string `yaml:"log_level"`
	// Logging  file
	LogFile string `yaml:"log_file"`
	// Template root directory
	TemplateRoot string `yaml:"template_root"`
	// Service user name for keystone
	ServiceUserID string `yaml:"service_user_id"`
	// Service user password for keystone
	ServiceUserPassword string `yaml:"service_user_password"`

	// Optional ansible sudo password
	AnsibleSudoPass string `yaml:"ansible_sudo_pass"`
	// Optional ansible deployer cherry pick url
	AnsibleFetchURL string `yaml:"ansible_fetch_url"`
	// Optional ansible deployer cherry pick revison(commit id)
	AnsibleCherryPickRevision string `yaml:"ansible_cherry_pick_revision"`
	// Optional ansible deployer revision(commit id)
	AnsibleRevision string `yaml:"ansible_revision"`
	// Optional Test var to run command in test mode
	Test bool `yaml:"test"`
}

Config represents Deploy configuration.

type Deploy

type Deploy struct {
	APIServer *client.HTTP
	// contains filtered or unexported fields
}

Deploy represents Deploy service.

func NewDeploy

func NewDeploy(c *Config) (*Deploy, error)

NewDeploy creates Deploy with given configuration.

func NewDeployManager

func NewDeployManager(configPath string) (*Deploy, error)

NewDeployManager creates Deploy reading configuration from given file.

func (*Deploy) Manage

func (c *Deploy) Manage() error

Manage starts managing the resource.

Directories

Path Synopsis
rhospd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL