odns

package
v0.0.85 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2022 License: Apache-2.0 Imports: 3 Imported by: 11

Documentation

Index

Constants

View Source
const (
	OdnsUnknown string = "unknown"
)

Variables

This section is empty.

Functions

func GetClientListOptionFromResourceName added in v0.0.66

func GetClientListOptionFromResourceName(x string) []client.ListOption

func GetOdnsRegisterName added in v0.0.57

func GetOdnsRegisterName(x string, y, z []string) string

GetOdnsRegisterName return a odns registername from x intent resourceName, y (kind, registryName and networkinstance for ni, z (additional object as a register resource object name)

func GetOdnsResourceKindName added in v0.0.61

func GetOdnsResourceKindName(x, y string) string

func GetOdnsResourceName added in v0.0.59

func GetOdnsResourceName(x, y string, z []string) string

GetOdnsResourceName return a odns resourcename from x intent resourceName, y resourcekind, z (additional object as a register resource object name)

func GetParentResourceName added in v0.0.50

func GetParentResourceName(s string) string

Types

type Odns

type Odns struct {
	Organization     string
	Deployment       string
	AvailabilityZone string
}

func Name2Odns

func Name2Odns(s string) *Odns

func (*Odns) GetAvailabilityZone

func (o *Odns) GetAvailabilityZone() string

func (*Odns) GetDeployment

func (o *Odns) GetDeployment() string

func (*Odns) GetFullOdaName added in v0.0.51

func (o *Odns) GetFullOdaName() (string, nddov1.OdaKind)

func (*Odns) GetOrganization

func (o *Odns) GetOrganization() string

type OdnsRegistry

type OdnsRegistry struct {
	*Odns
	OwnerKind    string
	OwnerName    string
	RegistryName string
	ResourceName string
}

func Name2OdnsRegistry

func Name2OdnsRegistry(s string) *OdnsRegistry

<org>.<dep>.<az>.<owner>.<registry>.<resourcename>

func (*OdnsRegistry) GetOdns

func (o *OdnsRegistry) GetOdns() *Odns

func (*OdnsRegistry) GetOwnerKind added in v0.0.60

func (o *OdnsRegistry) GetOwnerKind() string

func (*OdnsRegistry) GetOwnerName

func (o *OdnsRegistry) GetOwnerName() string

func (*OdnsRegistry) GetRegistryName

func (o *OdnsRegistry) GetRegistryName() string

func (*OdnsRegistry) GetResourceName

func (o *OdnsRegistry) GetResourceName() string

type OdnsRegistryNi

type OdnsRegistryNi struct {
	*Odns
	OwnerKind           string
	OwnerName           string
	RegistryName        string
	ResourceName        string
	NetworkInstanceName string
}

func Name2OdnsRegistryNi

func Name2OdnsRegistryNi(s string) *OdnsRegistryNi

<org>.<dep>.<az>.<owner>.<registry>.<niname>.<resourcename>

func (*OdnsRegistryNi) GetNetworkInstanceName added in v0.0.54

func (o *OdnsRegistryNi) GetNetworkInstanceName() string

func (*OdnsRegistryNi) GetOdns added in v0.0.54

func (o *OdnsRegistryNi) GetOdns() *Odns

func (*OdnsRegistryNi) GetOwnerKind added in v0.0.60

func (o *OdnsRegistryNi) GetOwnerKind() string

func (*OdnsRegistryNi) GetOwnerName added in v0.0.54

func (o *OdnsRegistryNi) GetOwnerName() string

func (*OdnsRegistryNi) GetRegistryName added in v0.0.54

func (o *OdnsRegistryNi) GetRegistryName() string

func (*OdnsRegistryNi) GetResourceName

func (o *OdnsRegistryNi) GetResourceName() string

type OdnsResource added in v0.0.55

type OdnsResource struct {
	*Odns
	ResourceName string
}

func Name2OdnsResource added in v0.0.55

func Name2OdnsResource(s string) *OdnsResource

<org>.<dep>.<az>.<resourcename>

func (*OdnsResource) GetOdns added in v0.0.55

func (o *OdnsResource) GetOdns() *Odns

func (*OdnsResource) GetResourceName added in v0.0.55

func (o *OdnsResource) GetResourceName() string

type OdnsTopo added in v0.0.49

type OdnsTopo struct {
	*Odns
	TopologyName string
}

<org>.<dep>.<az>.<topologyname>

func Name2OdnsTopo added in v0.0.49

func Name2OdnsTopo(s string) *OdnsTopo

<org>.<dep>.<az>.<topologyname>

func (*OdnsTopo) GetOdns added in v0.0.49

func (o *OdnsTopo) GetOdns() *Odns

func (*OdnsTopo) GetTopologyName added in v0.0.49

func (o *OdnsTopo) GetTopologyName() string

type OdnsTopoResource added in v0.0.49

type OdnsTopoResource struct {
	*OdnsTopo
	ResourceName string
}

<org>.<dep>.<az>.<topologyname>.<resourcename> used for link and node

func Name2OdnsTopoResource added in v0.0.49

func Name2OdnsTopoResource(s string) *OdnsTopoResource

<org>.<dep>.<az>.<topologyname>.<resourcename> used for link and node

func (*OdnsTopoResource) GetOdnsTopo added in v0.0.49

func (o *OdnsTopoResource) GetOdnsTopo() *OdnsTopo

func (*OdnsTopoResource) GetResourceName added in v0.0.49

func (o *OdnsTopoResource) GetResourceName() string

Jump to

Keyboard shortcuts

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