grpce2e

package
v0.0.0-...-e1ceea9 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Copyright 2020 CYBERCRYPT

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for making test gRPC calls to the encryption service

func NewClient

func NewClient(endpoint, token string, https bool) (*Client, error)

Create a new client.

func (*Client) AddPermission

func (c *Client) AddPermission(oid, target string) (*app.AddPermissionResponse, error)

Perform a `AddPermission` request.

func (*Client) Close

func (c *Client) Close() error

Close the client connection. Call when done with the client.

func (*Client) CreateUser

func (c *Client) CreateUser(userscopes []app.CreateUserRequest_UserScope) (*app.CreateUserResponse, error)

Perform a `CreateUser` request.

func (*Client) GetPermissions

func (c *Client) GetPermissions(oid string) (*app.GetPermissionsResponse, error)

Perform a `GetPermissions` request.

func (*Client) GetVersion

func (c *Client) GetVersion() (*app.VersionResponse, error)

Perform a `Version` request.

func (*Client) RemovePermission

func (c *Client) RemovePermission(oid, target string) (*app.RemovePermissionResponse, error)

Perform a `RemovePermission` request.

func (*Client) Retrieve

func (c *Client) Retrieve(oid string) (*app.RetrieveResponse, error)

Perform a `Retrieve` request.

func (*Client) Store

func (c *Client) Store(plaintext, associatedData []byte) (*app.StoreResponse, error)

Perform a `Store` request.

Jump to

Keyboard shortcuts

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