utils

package
v0.0.0-...-983860c Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsString

func ContainsString(strings []string, str string) bool

func CreateClient

func CreateClient(accessKeyId *string, accessKeySecret *string) (_result *alidns.Client, _err error)

*

  • 使用AK&SK初始化账号Client
  • @param accessKeyId
  • @param accessKeySecret
  • @return Client
  • @throws Exception

func GetPublicIP

func GetPublicIP() (ip string, err error)

func GetPublicIP1

func GetPublicIP1() (string, error)

func GetPublicIP2

func GetPublicIP2() (string, error)

func HandleDelete

func HandleDelete(account *networkv1.AliDnsAccount, ingress *netv1.Ingress, handler Handler)

func HandleUpdate

func HandleUpdate(account *networkv1.AliDnsAccount, ingress *netv1.Ingress, ip string, handler Handler)

func RemoveString

func RemoveString(strs []string, str string) []string

func RulesEqual

func RulesEqual(lRules []netv1.IngressRule, rRules []netv1.IngressRule) bool

func RulesToStrings

func RulesToStrings(rules []netv1.IngressRule) []string

Types

type AliDnsAccount

type AliDnsAccount = v1.AliDnsAccountSpec

type AliDnsUtils

type AliDnsUtils struct {
	// contains filtered or unexported fields
}

func NewAliDnsUtils

func NewAliDnsUtils(account AliDnsAccount) (*AliDnsUtils, error)

func (*AliDnsUtils) CreateRecord

func (dns *AliDnsUtils) CreateRecord(RR string, Value string, Type string) (string, error)

func (*AliDnsUtils) DeleteRecord

func (dns *AliDnsUtils) DeleteRecord(recordId string) error

func (*AliDnsUtils) DeleteRecordByRR

func (dns *AliDnsUtils) DeleteRecordByRR(rr string) error

func (*AliDnsUtils) FindRecordByRR

func (*AliDnsUtils) GetRecordCount

func (dns *AliDnsUtils) GetRecordCount() (int64, error)

func (*AliDnsUtils) ListRecords

func (*AliDnsUtils) UpdateRecord

func (dns *AliDnsUtils) UpdateRecord(RecordId string, RR string, Value string, Type string) error

type DebugHandler

type DebugHandler = func(string, ...interface{})

type ErrorHandler

type ErrorHandler = func(error, string, string, ...interface{})

type InfoHandler

type InfoHandler = func(string, string, ...interface{})

type PublicIP

type PublicIP struct {
	Address  string `json:"address"`
	Code     int64  `json:"code"`
	IP       string `json:"ip"`
	IsDomain int64  `json:"isDomain"`
	Rs       int64  `json:"rs"`
}

type SuccessHandler

type SuccessHandler = func(host string)

Jump to

Keyboard shortcuts

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