networkinterface

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Overview

Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache v2.0 License.

Index

Constants

View Source
const (
	LNET_PREFIX        = "logicalnetworks"
	LNET_PREFIX_LEGACY = "logicalnetwork"
	VNET_PREFIX        = "virtualnetworks"
	SUBNET_PREFIX      = "subnets"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type InterfaceClient

type InterfaceClient struct {
	network.BaseClient
	// contains filtered or unexported fields
}

InterfaceClient structure

func NewInterfaceClient

func NewInterfaceClient(cloudFQDN string, authorizer auth.Authorizer) (*InterfaceClient, error)

NewInterfaceClient method returns new client

func (*InterfaceClient) CreateOrUpdate

func (c *InterfaceClient) CreateOrUpdate(ctx context.Context, group, name string, networkInterface *network.Interface) (*network.Interface, error)

CreateOrUpdate methods invokes create or update on the client

func (*InterfaceClient) Delete

func (c *InterfaceClient) Delete(ctx context.Context, group, name string) error

Delete methods invokes delete of the network interface resource

func (*InterfaceClient) Get

func (c *InterfaceClient) Get(ctx context.Context, group, name string) (*[]network.Interface, error)

Get methods invokes the client Get method

func (*InterfaceClient) Hydrate added in v0.25.1

func (c *InterfaceClient) Hydrate(ctx context.Context, group, name string, networkInterface *network.Interface) (*network.Interface, error)

Hydrate methods invokes hydrate on the client

func (*InterfaceClient) Precheck added in v0.19.3

func (c *InterfaceClient) Precheck(ctx context.Context, group string, networkInterfaces []*network.Interface) (bool, error)

Prechecks whether the system is able to create specified resources. Returns true if it is possible; or false with reason in error message if not.

type Service

type Service interface {
	Get(context.Context, string, string) (*[]network.Interface, error)
	CreateOrUpdate(context.Context, string, string, *network.Interface) (*network.Interface, error)
	Hydrate(context.Context, string, string, *network.Interface) (*network.Interface, error)
	Delete(context.Context, string, string) error
	Precheck(ctx context.Context, group string, networkInterfaces []*network.Interface) (bool, error)
}

Service interface

Jump to

Keyboard shortcuts

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