api

package
v0.0.0-...-d7ecad2 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

View Source
const ManagedClusterEntityName = "managedcluster"

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

func (*Agent) AuthInterceptor

func (a *Agent) AuthInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)

func (*Agent) CreateVaultRole

func (*Agent) DeleteVaultRole

func (*Agent) DeployDefaultApps

func (*Agent) GetClusterAppConfig

func (*Agent) GetClusterAppValues

func (*Agent) GetClusterApps

func (a *Agent) GetClusterApps(ctx context.Context, request *agentpb.GetClusterAppsRequest) (
	*agentpb.GetClusterAppsResponse, error)

func (*Agent) GetCrossplaneProviders

func (a *Agent) GetCrossplaneProviders() (providers []model.CrossplaneProvider, err error)

func (*Agent) Ping

func (a *Agent) Ping(ctx context.Context, request *agentpb.PingRequest) (*agentpb.PingResponse, error)

func (*Agent) SetupDatabase

func (*Agent) StoreCredential

func (*Agent) StoreManagedClusterCredential

func (a *Agent) StoreManagedClusterCredential(ctx context.Context, id string, kubeconfig string, endpoint string) error

store managed cluster kubeconfig and endpoint in vault

func (*Agent) SyncApp

func (a *Agent) SyncApp(ctx context.Context, request *agentpb.SyncAppRequest) (
	*agentpb.SyncAppResponse, error)

func (*Agent) UpdateVaultRole

type DockerConfig

type DockerConfig map[string]DockerConfigEntry

type DockerConfigEntry

type DockerConfigEntry struct {
	Username string `json:"username,omitempty"`
	Password string `json:"password,omitempty" datapolicy:"password"`
	Email    string `json:"email,omitempty"`
	Auth     string `json:"auth,omitempty" datapolicy:"token"`
}

type DockerConfigJSON

type DockerConfigJSON struct {
	Auths DockerConfig `json:"auths" datapolicy:"token"`
	// +optional
	HttpHeaders map[string]string `json:"HttpHeaders,omitempty" datapolicy:"token"`
}

Jump to

Keyboard shortcuts

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