api

package module
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {

	// V2 is version 2 of the CSM client.
	V2 V2

	// SecretService is the client to the secret manager service.
	// Deprecated: use the SecretServiceV2 instead.
	SecretService v1.SecretManagerServiceClient
	// contains filtered or unexported fields
}

Client is the gRPC client to csm service.

func New

func New(conf *Config, opts ...grpc.DialOption) (*Client, error)

New возвращает новый клиент к gRPC серверу

func (*Client) Close

func (c *Client) Close() error

Close закрывает соединение с сервером

type Config

type Config struct {
	// Address is the address string to csm service, e.g: "secretmanager.api.cloud.ru:443"
	Host string
	// Insecure disables the SSL verification
	Insecure bool
}

Config is the connection configuration.

type V2

type V2 struct {
	FolderService v2.FolderServiceClient
	SecretService v2.SecretServiceClient
}

V2 is version 2 of the CSM client.

Directories

Path Synopsis
api
v1
v2

Jump to

Keyboard shortcuts

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