grpc

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2023 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(ctx context.Context, addr string, opts ...grpc.DialOption) (membershipgrpc.ServerClient, error)

func NewModule

func NewModule(id, serverAddress string, baseUrl *url.URL, production bool, authenticator Authenticator, opts ...grpc.DialOption) fx.Option

Types

type Authenticator

type Authenticator interface {
	// contains filtered or unexported methods
}

type AuthenticatorFn

type AuthenticatorFn func(ctx context.Context) (metadata.MD, error)

func BearerAuthenticator

func BearerAuthenticator(issuer, clientID, clientSecret string) AuthenticatorFn

func TokenAuthenticator

func TokenAuthenticator(token string) AuthenticatorFn

type K8SClient

type K8SClient interface {
	Get(ctx context.Context, name string, options metav1.GetOptions) (*v1beta3.Stack, error)
	Create(ctx context.Context, stack *v1beta3.Stack) (*v1beta3.Stack, error)
	Update(ctx context.Context, stack *v1beta3.Stack) (*v1beta3.Stack, error)
	Delete(ctx context.Context, name string) error
	Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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