auth

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APIUsers = "/user"
)

API Constants

Variables

This section is empty.

Functions

func RequestServer

func RequestServer(ctx context.Context, requestParams RequestServerType) (string, error)

RequestServer is auth request to CRDA server

Types

type Payload

type Payload struct {
	utils.GenericPayload
	SnykToken string `json:"snyk_api_token,omitempty"`
	UUID      string `json:"user_id,omitempty"`
}

Payload is format for auth requests to Server

type RequestServerType

type RequestServerType struct {
	SynkToken       string
	UserID          string
	Host            string
	ThreeScaleToken string
	Client          string
}

RequestServerType is a argtype of RequestServer func

type UserResponse

type UserResponse struct {
	UUID    string `json:"user_id,omitempty"`
	Message string `json:"message,omitempty"`
	Status  int32  `json:"status,omitempty"`
}

UserResponse is format for Response from Server

Jump to

Keyboard shortcuts

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