creator

package
v2.17.0 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Method = "POST"
	Name   = "creator"
	Path   = "/v4/organizations/{organization}/credentials/"
)

Variables

This section is empty.

Functions

func IsAlreadyExists

func IsAlreadyExists(err error) bool

IsAlreadyExists asserts alreadyExistsError.

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

Types

type Config

type Config struct {
	Logger     micrologger.Logger
	Middleware *middleware.Middleware // nolint: structcheck, unused
	Service    *creator.Service
}

type Endpoint

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

func New

func New(config Config) (*Endpoint, error)

func (*Endpoint) Decoder

func (e *Endpoint) Decoder() kithttp.DecodeRequestFunc

func (*Endpoint) Encoder

func (e *Endpoint) Encoder() kithttp.EncodeResponseFunc

func (*Endpoint) Endpoint

func (e *Endpoint) Endpoint() kitendpoint.Endpoint

func (*Endpoint) Method

func (e *Endpoint) Method() string

func (*Endpoint) Middlewares

func (e *Endpoint) Middlewares() []kitendpoint.Middleware

func (*Endpoint) Name

func (e *Endpoint) Name() string

func (*Endpoint) Path

func (e *Endpoint) Path() string

type Request

type Request struct {
	Organization string `json:"-"`
	Provider     string `json:"provider"`

	AWS   aws.AWS     `json:"aws"`
	Azure azure.Azure `json:"azure"`
}

type Response

type Response struct {
	Code    string `json:"code"`
	Message string `json:"message"`

	CredentialID string `json:"-"`
	Organization string `json:"-"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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