azure

package
v0.0.0-...-7c19135 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Config
	// contains filtered or unexported fields
}

Client is the client fo rthe azure serverless package

func New

func New(conf Config) (*Client, error)

New will return a new azure serverless (container instances) client

func (*Client) CreateContainerGroup

func (c *Client) CreateContainerGroup(ctx context.Context, req CreateContainerRequest) (cg containerinstance.ContainerGroup, err error)

CreateContainerGroup creates a new container group given a container group name, location, resource group, and container properties in request

type Config

type Config struct {
	azure_auth.AuthConfig
	Logger *logrus.Entry
}

Config is the configuration for the azure serverless package

type CreateContainerRequest

type CreateContainerRequest struct {
	APIVersion               string                                     `json:"apiVersion,omitempty" yaml:"apiVersion,omitempty"`
	Type                     string                                     `json:"type,omitempty" yaml:"type,omitempty"`
	ContainerGroupName       string                                     `json:"name" yaml:"name"`
	Location                 string                                     `json:"location" yaml:"location"`
	ResourceGroupName        string                                     `json:"resourceGroup" yaml:"resourceGroup"`
	ContainerGroupProperties containerinstance.ContainerGroupProperties `json:"properties" yaml:"properties"`
}

CreateContainerRequest is a request to create an azure Container Instance

Jump to

Keyboard shortcuts

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