standalone

package
v1.2.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2026 License: Apache-2.0 Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAAPApplication

func CreateAAPApplication(ctx context.Context, opts CreateAAPApplicationOptions) error

CreateAAPApplication creates an OAuth application in AAP Gateway and writes the client_id to the specified output file.

func CreateAAPClient

func CreateAAPClient(opts CreateAAPClientOptions) (*aap.AAPGatewayClient, error)

func GetHostnameFQDN

func GetHostnameFQDN() (string, error)

GetHostnameFQDN returns the fully qualified domain name of the host. It first tries "hostname -f" for the FQDN, then falls back to "hostname" for the short name. The result is normalized to lowercase per RFC 1123 (DNS is case-insensitive).

Types

type CreateAAPApplicationOptions

type CreateAAPApplicationOptions struct {
	Client       OAuthApplicationCreator
	Logger       logrus.FieldLogger
	AAPConfig    *standaloneconfig.AAPConfig
	BaseDomain   string
	AppName      string
	Organization int
	OutputFile   string
}

type CreateAAPClientOptions

type CreateAAPClientOptions struct {
	AAPConfig       *standaloneconfig.AAPConfig
	InsecureSkipTLS bool
	CACertFile      string
	Logger          logrus.FieldLogger
}

type OAuthApplicationCreator

type OAuthApplicationCreator interface {
	CreateOAuthApplication(ctx context.Context, token string, req *aap.AAPOAuthApplicationRequest) (*aap.AAPOAuthApplicationResponse, error)
}

Jump to

Keyboard shortcuts

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