standalone

package
v1.2.0-rc1 Latest Latest
Warning

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

Go to latest
Published: May 27, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

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