connect

package
v0.0.0-...-4450389 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DialX509

func DialX509(addr, certFile, caFile string) (*grpc.ClientConn, error)

func GetRPCCredsRepoId

func GetRPCCredsRepoId(
	ctx context.Context,
	args map[string]interface{},
	action auth.Action,
	repoId uuid.I,
) (grpc.CallOption, error)

func GetRPCCredsScope

func GetRPCCredsScope(
	ctx context.Context,
	args map[string]interface{},
	sc auth.SimpleScope,
) (grpc.CallOption, error)

func GetRPCCredsScopes

func GetRPCCredsScopes(
	ctx context.Context,
	args map[string]interface{},
	scopes []interface{},
) (grpc.CallOption, error)

func GetRPCCredsSimple

func GetRPCCredsSimple(
	ctx context.Context,
	args map[string]interface{},
	scopes []SimpleScope,
) (grpc.CallOption, error)

func GetRPCCredsSimpleAndRepoId

func GetRPCCredsSimpleAndRepoId(
	ctx context.Context,
	args map[string]interface{},
	simpleScopes []SimpleScope,
	idScopes []RepoIdScope,
) (grpc.CallOption, error)

Types

type RepoIdScope

type RepoIdScope = jwtauth.RepoIdScope

type SimpleScope

type SimpleScope = auth.SimpleScope

Jump to

Keyboard shortcuts

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