azurecmd

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2023 License: MIT Imports: 6 Imported by: 0

README

azurecmd

import "github.com/slalombuild/fusion/internal/commands/azurecmd"
Package azurecmd contains all commands for the aws section of the fusion cli

Commands

AWS commands can be executed with fusion new azure

Index

Variables

var (
    ErrGenVnet   = "failed to generate terraform for vnet"
    ErrHighlight = "error highlighting terraform"
)

type Azure

type Azure struct {
    Func NewFunctionCommand `cmd:"" help:"Create new Azure function"`
    Vnet NewVnetCommand     `cmd:"" help:"Create new Azure vnet"`
}

type Globals

type Globals struct {
    Region string `enum:"us-west-1,us-west-2,us-east-1" default:"us-east-1"`
}

type NewFunctionCommand

type NewFunctionCommand struct {
    Globals
    Data *azure.AzureFunction `embed:""`
}
func (*NewFunctionCommand) Run
func (cmd *NewFunctionCommand) Run(ctx *commands.Context) error

type NewVnetCommand

NewVnetCmd creates a new vnet

type NewVnetCommand struct {
    *azure.Vnet `embed:""`
}
func (*NewVnetCommand) Run
func (cmd *NewVnetCommand) Run(ctx *commands.Context) error

Generated by gomarkdoc

Documentation

Overview

Package azurecmd contains all commands for the aws section of the fusion cli

Commands

AWS commands can be executed with

fusion new azure

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrGenVnet   = "failed to generate terraform for vnet"
	ErrHighlight = "error highlighting terraform"
)

Functions

This section is empty.

Types

type Azure

type Azure struct {
	Func NewFunctionCommand `cmd:"" help:"Create new Azure function"`
	Vnet NewVnetCommand     `cmd:"" help:"Create new Azure vnet"`
}

type Globals

type Globals struct {
	Region string `enum:"us-west-1,us-west-2,us-east-1" default:"us-east-1"`
}

type NewFunctionCommand

type NewFunctionCommand struct {
	Globals
	Data *azure.AzureFunction `embed:""`
}

func (*NewFunctionCommand) Run

func (cmd *NewFunctionCommand) Run(ctx *commands.Context) error

type NewVnetCommand

type NewVnetCommand struct {
	*azure.Vnet `embed:""`
}

NewVnetCmd creates a new vnet

func (*NewVnetCommand) Run

func (cmd *NewVnetCommand) Run(ctx *commands.Context) error

Jump to

Keyboard shortcuts

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