addedeffect: go.aporeto.io/addedeffect/apiutils Index | Files

package apiutils

import "go.aporeto.io/addedeffect/apiutils"

Package apiutils contains various utilities to interact with Aporeto meta APIs.

Index

Package Files

doc.go utils.go

func GetConfig Uses

func GetConfig(ctx context.Context, api string, tlsConfig *tls.Config) (map[string]string, error)

GetConfig returns the additional config exposed by the gateway.

func GetGoogleOAuthClientID Uses

func GetGoogleOAuthClientID(ctx context.Context, api string, tlsConfig *tls.Config) ([]byte, error)

GetGoogleOAuthClientID returns the Google oauth client ID used bby the platform.

func GetJWTCert Uses

func GetJWTCert(ctx context.Context, api string, tlsConfig *tls.Config) ([]byte, error)

GetJWTCert returns the public certificate used to sign jwt.

func GetJWTX509Cert Uses

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 Uses

func GetManifestURL(ctx context.Context, api string, tlsConfig *tls.Config) ([]byte, error)

GetManifestURL returns the url of the manifest.

func GetPublicCA Uses

func GetPublicCA(ctx context.Context, api string, tlsConfig *tls.Config) ([]byte, error)

GetPublicCA returns the public CA used by the api.

func GetPublicCAPool Uses

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.

func GetServiceVersions Uses

func GetServiceVersions(ctx context.Context, api string, tlsConfig *tls.Config) (map[string]Version, error)

GetServiceVersions returns the version of the services.

type Version Uses

type Version struct {
    Version string
    Sha     string
}

Version holds the version of a servie

func GetModelVersion Uses

func GetModelVersion(ctx context.Context, api string, tlsConfig *tls.Config) (*Version, error)

GetModelVersion returns the version of the services.

Package apiutils imports 12 packages (graph). Updated 2019-05-01. Refresh now. Tools for package owners.