Documentation ¶
Overview ¶
Package apiutils contains various utilities to interact with Aporeto meta APIs.
Index ¶
- func GetConfig(ctx context.Context, api string, tlsConfig *tls.Config) (map[string]string, error)
- func GetGoogleOAuthClientID(ctx context.Context, api string, tlsConfig *tls.Config) ([]byte, error)
- func GetJWTCert(ctx context.Context, api string, tlsConfig *tls.Config) ([]byte, error)
- func GetJWTX509Cert(ctx context.Context, api string, tlsConfig *tls.Config) (*x509.Certificate, error)
- func GetManifestURL(ctx context.Context, api string, tlsConfig *tls.Config) ([]byte, error)
- func GetPublicCA(ctx context.Context, api string, tlsConfig *tls.Config) ([]byte, error)
- func GetPublicCAPool(ctx context.Context, api string, tlsConfig *tls.Config) (*x509.CertPool, error)
- func GetServiceVersions(ctx context.Context, api string, tlsConfig *tls.Config) (map[string]Version, error)
- func GetTime(ctx context.Context, api string, tlsConfig *tls.Config) (time.Time, error)
- type Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetGoogleOAuthClientID ¶
GetGoogleOAuthClientID returns the Google oauth client ID used bby the platform.
func GetJWTCert ¶
GetJWTCert returns the public certificate used to sign jwt.
func GetJWTX509Cert ¶
func GetJWTX509Cert(ctx context.Context, api string, tlsConfig *tls.Config) (*x509.Certificate, error)
GetJWTX509Cert returns the public certificate used to sign jwt as an *x509.Certificate.
func GetManifestURL ¶
GetManifestURL returns the url of the manifest.
func GetPublicCA ¶
GetPublicCA returns the public CA used by the api.
func GetPublicCAPool ¶
func GetPublicCAPool(ctx context.Context, api string, tlsConfig *tls.Config) (*x509.CertPool, error)
GetPublicCAPool returns the public CA used by the api as a *x509.CertPool.
Types ¶
Click to show internal directories.
Click to hide internal directories.