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 ¶
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)
}
Click to show internal directories.
Click to hide internal directories.