apiserver

package
v0.0.0-...-cc86db0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InternetDomain = ".axt.aliyuncs.com"
)
View Source
const (
	IntranetDomain = ".axt.aliyun.com"
)

Variables

This section is empty.

Functions

func HttpGetWithSpecifiedHeader

func HttpGetWithSpecifiedHeader(logger logrus.FieldLogger, url string, headers map[string]string) (string, error)

func HttpGetWithoutExtraHeader

func HttpGetWithoutExtraHeader(logger logrus.FieldLogger, url string) (string, error)

Types

type EnvironmentVariableProvider

type EnvironmentVariableProvider struct{}

func (*EnvironmentVariableProvider) CACertificate

func (*EnvironmentVariableProvider) CACertificate(logger logrus.FieldLogger, refresh bool) ([]byte, error)

func (*EnvironmentVariableProvider) Name

type ExternalExecutableProvider

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

func (*ExternalExecutableProvider) CACertificate

func (p *ExternalExecutableProvider) CACertificate(logger logrus.FieldLogger, refresh bool) ([]byte, error)

func (*ExternalExecutableProvider) ExtraHTTPHeaders

func (p *ExternalExecutableProvider) ExtraHTTPHeaders(logger logrus.FieldLogger) (map[string]string, error)

func (*ExternalExecutableProvider) Name

func (*ExternalExecutableProvider) RegionId

func (p *ExternalExecutableProvider) RegionId(logger logrus.FieldLogger) (string, error)

func (*ExternalExecutableProvider) ServerDomain

func (p *ExternalExecutableProvider) ServerDomain(logger logrus.FieldLogger) (string, error)

type GeneralProvider

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

func (*GeneralProvider) CACertificate

func (*GeneralProvider) CACertificate(logger logrus.FieldLogger, refresh bool) ([]byte, error)

func (*GeneralProvider) ExtraHTTPHeaders

func (p *GeneralProvider) ExtraHTTPHeaders(logger logrus.FieldLogger) (map[string]string, error)

func (*GeneralProvider) Name

func (*GeneralProvider) Name() string

func (*GeneralProvider) RegionId

func (p *GeneralProvider) RegionId(logger logrus.FieldLogger) (string, error)

func (*GeneralProvider) ServerDomain

func (p *GeneralProvider) ServerDomain(logger logrus.FieldLogger) (string, error)

type HybridModeProvider

type HybridModeProvider struct{}

func (*HybridModeProvider) ExtraHTTPHeaders

func (*HybridModeProvider) ExtraHTTPHeaders(logger logrus.FieldLogger) (map[string]string, error)

func (*HybridModeProvider) Name

func (*HybridModeProvider) Name() string

func (*HybridModeProvider) RegionId

func (*HybridModeProvider) RegionId(logger logrus.FieldLogger) (string, error)

func (*HybridModeProvider) ServerDomain

func (p *HybridModeProvider) ServerDomain(logger logrus.FieldLogger) (string, error)

type ProvisionOutputV1

type ProvisionOutputV1 struct {
	SchemaVersion string `json:"schemaVersion"`
	Result        struct {
		CACertificate    string            `json:"caCertificate"`
		ServerDomain     string            `json:"serverDomain"`
		ExtraHTTPHeaders map[string]string `json:"extraHTTPHeaders"`
		RegionId         string            `json:"regionId"`
	} `json:"result"`
}

Jump to

Keyboard shortcuts

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