migrator

package
v0.0.0-...-9796320 Latest Latest
Warning

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

Go to latest
Published: May 7, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientConfig

type ClientConfig struct {
	RetriesCount        uint
	DelayBetweenRetries uint
}

type JwtConfig

type JwtConfig struct {
	//RequiredScope []string `json:"required_scope"`
	JwksURLs       []string `json:"jwks_urls"`
	TrustedIssuers []string `json:"trusted_issuers"`
}

JwtConfig Config

type K8sClient

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

a simple c-r go client wrapper with retries.

func NewClient

func NewClient(crc client.Client, config ClientConfig) *K8sClient

func (*K8sClient) FindOldApis

func (k8sc *K8sClient) FindOldApis() ([]oldapi.Api, error)

type MigrationResult

type MigrationResult struct {
	NewApiName string
	Failures   []error
}

type Migrator

type Migrator struct {
	DelaySecBetweenSteps uint
	// contains filtered or unexported fields
}

func New

func New(cl *K8sClient, delaySecBetweenSteps uint, gateway string) *Migrator

func (*Migrator) MigrateOldApi

func (m *Migrator) MigrateOldApi(oldApi *oldapi.Api) (*MigrationResult, error)

Jump to

Keyboard shortcuts

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