platform

package
v0.1.27 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUserAgent

func GetUserAgent(ctx context.Context) string

GetUserAgent extracts the user agent string from the context

func WithUserAgent

func WithUserAgent(ctx context.Context, userAgent string) context.Context

WithUserAgent adds a UserAgent string to the context passed to the GRPC client

Types

type Clients

type Clients interface {
	IAM() iam.Clients
	Tenant() tenant.Clients
	Registry() registry.Clients
	Advisory() advisory.Clients
	Ping() ping.Clients
	Notifications() notifications.Clients
	APK() apk.Clients

	Close() error
}

func NewPlatformClients

func NewPlatformClients(ctx context.Context, apiURL string, cred credentials.PerRPCCredentials, addlOpts ...grpc.DialOption) (Clients, error)

type OIDCClients

type OIDCClients interface {
	Auth() platformauth.AuthClient
	OIDC() platformoidc.Clients
	OIDCPing() ping.Clients

	Close() error
}

func NewOIDCClients

func NewOIDCClients(ctx context.Context, issuerURL string, cred credentials.PerRPCCredentials) (OIDCClients, error)

Directories

Path Synopsis
advisory
v1
Package v1 contains the v1 GRPC client and server definitions for implementing Advisory interactions.
Package v1 contains the v1 GRPC client and server definitions for implementing Advisory interactions.
apk
v1
Package v1 contains the v1 GRPC client and server definitions for implementing APK interactions.
Package v1 contains the v1 GRPC client and server definitions for implementing APK interactions.
auth
v1
Package v1 contains the v1 GRPC client and server definitions for implementing Auth interactions for the Console.
Package v1 contains the v1 GRPC client and server definitions for implementing Auth interactions for the Console.
common
v1
Package common contains Chainguard shared types exposed to the console.
Package common contains Chainguard shared types exposed to the console.
events
v1
Package events contains the GRPC client and server definitions for implementing eventing interactions for the Console.
Package events contains the GRPC client and server definitions for implementing eventing interactions for the Console.
iam
v1
Package v1 contains the v1 GRPC client and server definitions for implementing IAM interactions for the Console.
Package v1 contains the v1 GRPC client and server definitions for implementing IAM interactions for the Console.
notifications
v1
Package v1 contains the v1 GRPC client and server definitions for implementing notifications interactions for the Platform.
Package v1 contains the v1 GRPC client and server definitions for implementing notifications interactions for the Platform.
oidc
v1
Package v1 contains the v1 GRPC client and server definitions for implementing OIDC interactions for the Platform.
Package v1 contains the v1 GRPC client and server definitions for implementing OIDC interactions for the Platform.
ping
v1
Package v1 contains the v1 GRPC client and server definitions for implementing ping interactions for the Platform.
Package v1 contains the v1 GRPC client and server definitions for implementing ping interactions for the Platform.
registry
v1
Package v1 contains the v1 GRPC client and server definitions for implementing Registry interactions.
Package v1 contains the v1 GRPC client and server definitions for implementing Registry interactions.
tenant
v1
Package v1 contains the v1 GRPC client and server definitions for implementing Tenant interactions for the Console.
Package v1 contains the v1 GRPC client and server definitions for implementing Tenant interactions for the Console.

Jump to

Keyboard shortcuts

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