syncer

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CodeRepoProvider added in v0.3.0

type CodeRepoProvider struct {
	// Code repo provider name in tenant k8s
	Name string
}

type ProductMeta

type ProductMeta struct {
	// Product ID
	ID string
	// The ID of the git code repo that records product information
	MetaID string
}

ProductMeta record product meta data

type ProductProvider

type ProductProvider interface {
	GetProducts() ([]nautescrd.Product, error)
	GetProductMeta(ctx context.Context, ID string) (ProductMeta, error)
	GetCodeRepoProvider(ctx context.Context) (CodeRepoProvider, error)
}

ProductProvider is an object used to obtain product information from the product database

type ProductProviderSyncer

type ProductProviderSyncer interface {
	// Sync create|update|remove product resource by product provider
	Sync(context.Context, nautescrd.ProductProvider) error
}

type ProductSyncer

type ProductSyncer interface {
	Sync(context.Context, nautescrd.Product) error
	Delete(context.Context, nautescrd.Product) error
}

type SecretClient

type SecretClient interface {
	GetGitRepoRootToken(ctx context.Context, name string) (string, error)
	Logout()
}

Jump to

Keyboard shortcuts

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