Documentation
¶
Index ¶
- Constants
- func Delete(params DeploymentParams) error
- func Get(params ClusterParams) (*models.KibanaClusterInfo, error)
- func List(params ListParams) (*models.KibanaClustersInfo, error)
- func NewKibanaBody(params NewKibanaBodyParams) *models.CreateKibanaRequest
- func Reallocate(params ReallocateParams) error
- func Restart(params DeploymentParams) error
- func Resync(params DeploymentParams) error
- func Stop(params StopParams) error
- func Upgrade(params DeploymentParams) (*models.ClusterUpgradeInfo, error)
- type ClusterParams
- type DeploymentParams
- type ListParams
- type NewKibanaBodyParams
- type ReallocateParams
- type StopParams
Constants ¶
const ( // DefaultZoneCount is the number of zones that a Kibana has by default. DefaultZoneCount = 1 // DefaultMemoryPerNode is the default memory per node. DefaultMemoryPerNode = 1024 // DefaultNodeCountPerZone is the default node count per zone set. DefaultNodeCountPerZone = 1 )
Variables ¶
This section is empty.
Functions ¶
func Get ¶
func Get(params ClusterParams) (*models.KibanaClusterInfo, error)
Get returns the kibana instance
func List ¶
func List(params ListParams) (*models.KibanaClustersInfo, error)
List lists all the kibana instances matching the filters
func NewKibanaBody ¶
func NewKibanaBody(params NewKibanaBodyParams) *models.CreateKibanaRequest
NewKibanaBody constructs a kibana body for simple cases, abstracting the structure's complexity away from the user.
func Reallocate ¶
func Reallocate(params ReallocateParams) error
Reallocate will reallocate the Kibana instance instances, if no Instances are specified, all of the instances will be moved.
func Resync ¶
func Resync(params DeploymentParams) error
Resync forces indexer to immediately resynchronize the search index and cache for a given Kibana instance.
func Upgrade ¶
func Upgrade(params DeploymentParams) (*models.ClusterUpgradeInfo, error)
Upgrade upgrades the kibana instance to same version as the Elasticsearch cluster.
Types ¶
type ClusterParams ¶
type ClusterParams struct {
DeploymentParams
// Optional parameters
deputil.QueryParams
}
ClusterParams contains parameters used to fetch cluster's data
type DeploymentParams ¶
type DeploymentParams struct {
API *api.API
// ID represents the deployment ID.
ID string
util.TrackParams
}
DeploymentParams is the base struct meant to be embedded in other kibana pkg params
func (*DeploymentParams) Validate ¶
func (params *DeploymentParams) Validate() error
Validate ensures that the parameters are usable by the consuming function.
type ListParams ¶
type ListParams struct {
*api.API
Version string
// Optional parameters
deputil.QueryParams
}
ListParams contains parameters used to fetch cluster's data
func (ListParams) Validate ¶
func (params ListParams) Validate() error
Validate is the implementation for the ecctl.Validator interface
type NewKibanaBodyParams ¶
type NewKibanaBodyParams struct {
ID string
Name string
ZoneCount int32
MemoryPerNode int32
NodeCountPerZone int32
}
NewKibanaBodyParams is used by NewKibanaBody.
func (*NewKibanaBodyParams) Fill ¶
func (params *NewKibanaBodyParams) Fill()
Fill sets any unset values to its default ones.
type ReallocateParams ¶
type ReallocateParams struct {
DeploymentParams
Instances []string
Output *output.Device
}
ReallocateParams is used by Reallocate as a config struct
func (ReallocateParams) Validate ¶
func (params ReallocateParams) Validate() error
Validate ensures that the parameters are usable by the consuming function.
type StopParams ¶
type StopParams struct {
Hide bool
DeploymentParams
}
StopParams is used by the Stop function
func (StopParams) Validate ¶
func (params StopParams) Validate() error
Validate ensures that the parameters are usable by the consuming function.