Documentation
¶
Overview ¶
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Index ¶
- Variables
- func ApplyCommand(cfg *CLIConfig) *cobra.Command
- func CreateCommand(cfg *CLIConfig) *cobra.Command
- func DeployCommand(cfg *CLIConfig) *cobra.Command
- func GetCommand(cfg *CLIConfig) *cobra.Command
- func InitCommand(cfg *CLIConfig) *cobra.Command
- func LoginCommand(cfg *CLIConfig) *cobra.Command
- func RBACCommand(cfg *CLIConfig) *cobra.Command
- func SchemaCommand(cfg *CLIConfig) *cobra.Command
- func SettingCommand(cfg *CLIConfig) *cobra.Command
- func SyncCommand(cfg *CLIConfig) *cobra.Command
- func UpdateConfig(config *CLIConfig, basePath string) error
- type CLIConfig
Constants ¶
This section is empty.
Variables ¶
var AdminUsername = "admin@super.sailor"
var (
ErrKindArgumentMissing = errors.New("kind or env as argument is required")
)
Functions ¶
func ApplyCommand ¶
func CreateCommand ¶
func DeployCommand ¶
func GetCommand ¶
func InitCommand ¶ added in v0.0.4
func LoginCommand ¶
func RBACCommand ¶
func SchemaCommand ¶
func SettingCommand ¶
func SyncCommand ¶ added in v0.0.4
func UpdateConfig ¶
Types ¶
type CLIConfig ¶
type CLIConfig struct {
// Manifest is used to know details about different environment sailor is hosted in
Manifest v1.SailorManifest `json:"manifest"`
// SailorRoot is mostly ~/.sailor
SailorRoot string `json:"-"`
// Env is the current selected environment by the user
Env string `json:"env"`
// SailorHost is the host of the current selected environment, splatted for ease
// of use
SailorHost string `json:"-"`
// SailorClient is the REST API client created with SailorHost
SailorClient *v1.CoreAPIClient `json:"-"`
// Token is the admin/user token fetched after logged in, it works until
// it expires!
Token string `json:"token"`
// User is used for global set an email which can then be used for logging
// in to your sailor core server
User string `json:"user"`
// CwdSailorFile is the sailor file in the current working directory
CwdSailorFile types.SailorFile `json:"-"`
// CwdSailorLockFile is the sailor lock file in the current working directory
CwdSailorLockFile types.SailorLockFile `json:"-"`
}