loadctl

command module
v0.0.0-...-4c1ee0c Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

README

loadctl

Fake CLI tool for Cloud API LoadBalancer

How to build

This CLI tool requires to build Golang and Make

  • To get required dependencies: make dep
  • To build runnable: make build
  • To build linux runnable: make build-linux

Release process

This project is integrated with Github Actions (see .github/workflows/go.yml) All runnables (linux-amd64, windows-amd64, darwin-amd64) are available on Release Page

How to use loadctl:

Before you begin, you have to create login configuration.
To do that, you have to create loadctl.yaml in current path and provide configuration with username. i.e.:
user: tomasz
It is also possible to create this file automaticaly using command loadctl login. i.e.:
loadctl login --user tomasz
If you want to override user in adHoc command, use --user flag, i.e.:
loadctl list --user mike

  • How to create new LoadBalancer loadctl new name-of-new-loadbalancer
  • How to list all LoadBalancers and instances loadctl list
  • How to deploy new version to loadbalancer loadctl deploy new-version --loadbalancer name-of-new-loadbalancer
  • How to deploy many instances in new version loadctl deploy new-version --loadbalancer name-of-new-loadbalancer --count 10
  • How to set timeout on deploy method (default 30s) loadctl deploy new-version --loadbalancer name-of-new-loadbalancer --timeout 60

loadctl generated doc

Documentation

Overview

Copyright © 2019 NAME HERE <EMAIL ADDRESS>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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