intersight

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2020 License: MPL-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDataSourceMapping

func GetDataSourceMapping() map[string]*schema.Resource

func GetResourceMapping

func GetResourceMapping() map[string]*schema.Resource

func Provider

func Provider() terraform.ResourceProvider

func SuppressDiffAdditionProps

func SuppressDiffAdditionProps(k, old, new string, d *schema.ResourceData) bool

SuppressDiffAdditionProps Suppress Difference functions for additional properties

Types

type Config

type Config struct {
	ApiKey        string
	SecretKeyFile string
	Endpoint      string
}

func (*Config) SendDeleteRequest

func (s *Config) SendDeleteRequest(url string) ([]byte, error)

func (*Config) SendGetRequest

func (s *Config) SendGetRequest(url string, data []byte) ([]byte, error)

SendGetRequest sends Get request to appliance with or without payload

func (*Config) SendRequest

func (s *Config) SendRequest(url string, data []byte) ([]byte, error)

SendRequest accepts url and payload json. Sends a POST request.

func (*Config) SendUpdateRequest

func (s *Config) SendUpdateRequest(url string, data []byte) ([]byte, error)

Source Files

Jump to

Keyboard shortcuts

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