aci

package
v2.14.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: MPL-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CloudLBClassName                  = "cloudLB"
	CloudRsLDevToCloudSubnetClassName = "cloudRsLDevToCloudSubnet"
	CloudFrontendIPv4AddrClassName    = "cloudFrontendIPv4Addr"
	RnCloudLB                         = "clb-%s"
)
View Source
const (
	CloudLDevClassName        = "cloudLDev"
	CloudLIfClassName         = "cloudLIf"
	CloudEPSelectorClassName  = "cloudEPSelector"
	CloudRsLDevToCtxClassName = "cloudRsLDevToCtx"
	RnCloudLDev               = "cld-%s"
)
View Source
const Created = "created"
View Source
const Deleted = "deleted"
View Source
const ErrDistinguishedNameNotFound = "The Dn is not present in the content"

Variables

This section is empty.

Functions

func AppendAttrSchemas

func AppendAttrSchemas(attrs map[string]*schema.Schema, mapsToAppend ...map[string]*schema.Schema) map[string]*schema.Schema

AppendAttrSchemas adds a range of schemas to any schema

func AppendBaseAttrSchema

func AppendBaseAttrSchema(attrs map[string]*schema.Schema) map[string]*schema.Schema

AppendBaseAttrSchema adds the BaseAttr to any schema

func AppendNameAliasAttrSchema

func AppendNameAliasAttrSchema(attrs map[string]*schema.Schema) map[string]*schema.Schema

AppendNameAliasAttrSchema adds the NameAliasAttr to required schema

func G

func G(cont *container.Container, key string) string

func GetAllowEmptyAttrSchema

func GetAllowEmptyAttrSchema() map[string]*schema.Schema

func GetAnnotationAttrSchema

func GetAnnotationAttrSchema() map[string]*schema.Schema

func GetBaseAttrSchema

func GetBaseAttrSchema() map[string]*schema.Schema

func GetDN

func GetDN(d *schema.ResourceData, m interface{}, className string) string

func GetDescriptionAttrSchema

func GetDescriptionAttrSchema() map[string]*schema.Schema

func GetMOName

func GetMOName(dn string) string

func GetNameAliasAttrSchema

func GetNameAliasAttrSchema() map[string]*schema.Schema

func GetParentDn

func GetParentDn(dn string, rn string) string

func InBetween

func InBetween(input, min, max int) bool

Returns true if the input value is between the minimum and maximum value.

func PostAndSetStatus

func PostAndSetStatus(d *schema.ResourceData, m interface{}, status string) (*container.Container, error)

PostAndSetStatus is used to post schema and set the status

func Provider

func Provider() *schema.Provider

func SetField

func SetField(obj interface{}, name string, value interface{}) error

Source: https://github.com/oleiade/reflections/blob/73878017606371a3ee5eb6e85a846cfe994e34b9/reflections.go#L129 SetField sets the provided obj field with provided value. obj param has to be a pointer to a struct, otherwise it will soundly fail. Provided value type should match with the struct field you're trying to set.

func StripQuotes

func StripQuotes(word string) string

Types

type Config

type Config struct {
	Username           string
	Password           string
	URL                string
	IsInsecure         bool
	PrivateKey         string
	Certname           string
	ProxyUrl           string
	ProxyCreds         string
	ValidateRelationDn bool
	MaxRetries         int
}

Config

func (Config) Valid

func (c Config) Valid() error

Source Files

Jump to

Keyboard shortcuts

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