searcher

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: 7 Imported by: 0

Documentation

Overview

Package searcher provides functionality to retrieve a single credential.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsSecretInUnexpectedFormatError

func IsSecretInUnexpectedFormatError(err error) bool

IsSecretInUnexpectedFormatError asserts secretInUnexpectedFormatError.

func IsSecretNotFoundError

func IsSecretNotFoundError(err error) bool

IsSecretNotFoundError asserts secretNotFoundError.

func IsWrongOwnerOrganizationError

func IsWrongOwnerOrganizationError(err error) bool

IsWrongOwnerOrganizationError asserts wrongOwnerOrganizationError.

Types

type Config

type Config struct {
	K8sClient kubernetes.Interface
	Logger    micrologger.Logger
}

Config is the service configuration data structure.

type Request

type Request struct {
	Organization string
	ID           string
}

Request is the request the searcher service expects.

type Response

type Response struct {
	ID       string
	Provider string
	AWS      struct {
		Roles struct {
			Admin       string
			AWSOperator string
		}
	}
	Azure struct {
		Credential struct {
			ClientID       string
			SubscriptionID string
			TenantID       string
		}
	}
}

Response is the response data structure our searcher service will return.

type Service

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

Service is our actual service.

func New

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

New creates a new lister service based on a configutation.

func (*Service) Search

func (c *Service) Search(request Request) (*Response, error)

Search returns metadata about one credential.

Jump to

Keyboard shortcuts

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