cloud

package
v1.8.8 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package cloud contains the services for interacting with SafeDep Cloud. It uses SafeDep gRPC API for communication.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewApiKeyService

func NewApiKeyService(conn *grpc.ClientConn) (*apiKeyService, error)

func NewOnboardingService

func NewOnboardingService(conn *grpc.ClientConn) (*onboardingService, error)

func NewPingService

func NewPingService(conn *grpc.ClientConn) (*pingService, error)

func NewUserService

func NewUserService(conn *grpc.ClientConn) (*userService, error)

Types

type ApiKey added in v1.8.2

type ApiKey struct {
	Name      string
	Desc      string
	ID        string
	ExpiresAt time.Time
}

type CreateApiKeyRequest

type CreateApiKeyRequest struct {
	Name         string
	Desc         string
	ExpiryInDays int
}

type CreateApiKeyResponse

type CreateApiKeyResponse struct {
	Key       string
	ExpiresAt time.Time
}

type ListApiKeyRequest added in v1.8.2

type ListApiKeyRequest struct {
	Name           string
	OnlyMine       bool
	IncludeExpired bool
}

type ListApiKeyResponse added in v1.8.2

type ListApiKeyResponse struct {
	Keys []*ApiKey
}

type PingResponse

type PingResponse struct {
	StartedAt  time.Time
	FinishedAt time.Time
}

type RegisterRequest

type RegisterRequest struct {
	Email     string
	Name      string
	OrgName   string
	OrgDomain string
}

type RegisterResponse

type RegisterResponse struct {
	TenantDomain string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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