plugin

package
v2.13.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseSecretKey

func ParseSecretKey(key string) (secretName string, tokenKey string)

ParseSecretKey retrieves secret appSetName if different from common ArgoCDSecretName.

Types

type Output

type Output struct {
	// Parameters is the list of parameter sets returned by the plugin.
	Parameters []map[string]interface{} `json:"parameters"`
}

type Service

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

func NewPluginService

func NewPluginService(ctx context.Context, appSetName string, baseURL string, token string, requestTimeout int) (*Service, error)

func (*Service) List

func (p *Service) List(ctx context.Context, parameters v1alpha1.PluginParameters) (*ServiceResponse, error)

type ServiceRequest

type ServiceRequest struct {
	// ApplicationSetName is the appSetName of the ApplicationSet for which we're requesting parameters. Useful for logging in
	// the plugin service.
	ApplicationSetName string `json:"applicationSetName"`
	// Input is the map of parameters set in the ApplicationSet spec for this generator.
	Input v1alpha1.PluginInput `json:"input"`
}

ServiceRequest is the request object sent to the plugin service.

type ServiceResponse

type ServiceResponse struct {
	// Output is the map of outputs returned by the plugin.
	Output Output `json:"output"`
}

ServiceResponse is the response object returned by the plugin service.

Jump to

Keyboard shortcuts

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