operator

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: May 22, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Operator

type Operator struct {
	Name                           string
	Namespace                      string
	Image                          string
	KubemqImage                    string
	PrometheusImage                string
	GrafanaImage                   string
	KubemqDashboardDashboardSource string
	LicenseMode                    string
	ServiceAccountName             string
	*appsv1.Deployment
}

func NewOperator

func NewOperator() *Operator

func (*Operator) Get

func (o *Operator) Get() (*appsv1.Deployment, error)

func (*Operator) Object

func (o *Operator) Object() runtime.Object

func (*Operator) SetDefault

func (o *Operator) SetDefault(namespace, name, serviceAccountName string) *Operator

func (*Operator) Spec

func (o *Operator) Spec() ([]byte, error)

func (*Operator) String

func (o *Operator) String() string

type Role

type Role struct {
	Name      string
	Namespace string
	*rbac.Role
}

func NewRole

func NewRole() *Role

func (*Role) Get

func (r *Role) Get() (*rbac.Role, error)

func (*Role) Object

func (r *Role) Object() runtime.Object

func (*Role) SetDefault

func (r *Role) SetDefault(namespace, name string) *Role

func (*Role) Spec

func (r *Role) Spec() ([]byte, error)

func (*Role) String

func (r *Role) String() string

type RoleBinding

type RoleBinding struct {
	Name      string
	Namespace string
	*rbac.RoleBinding
}

func NewRoleBinding

func NewRoleBinding() *RoleBinding

func (*RoleBinding) Get

func (rb *RoleBinding) Get() (*rbac.RoleBinding, error)

func (*RoleBinding) Object

func (rb *RoleBinding) Object() runtime.Object

func (*RoleBinding) SetDefault

func (rb *RoleBinding) SetDefault(namespace, name string) *RoleBinding

func (*RoleBinding) Spec

func (rb *RoleBinding) Spec() ([]byte, error)

func (*RoleBinding) String

func (rb *RoleBinding) String() string

type ServiceAccount

type ServiceAccount struct {
	Name      string
	Namespace string
	*apiv1.ServiceAccount
}

func NewServiceAccount

func NewServiceAccount() *ServiceAccount

func (*ServiceAccount) Get

func (sa *ServiceAccount) Get() (*apiv1.ServiceAccount, error)

func (*ServiceAccount) Object

func (sa *ServiceAccount) Object() runtime.Object

func (*ServiceAccount) SetDefault

func (sa *ServiceAccount) SetDefault(namespace, name string) *ServiceAccount

func (*ServiceAccount) Spec

func (sa *ServiceAccount) Spec() ([]byte, error)

func (*ServiceAccount) String

func (sa *ServiceAccount) String() string

type Template

type Template struct {
	Structure string
	Data      interface{}
	// contains filtered or unexported fields
}

func NewTemplate

func NewTemplate(str string, data interface{}) *Template

func (*Template) Get

func (t *Template) Get() ([]byte, error)

func (*Template) Write

func (t *Template) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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