Documentation
¶
Index ¶
Constants ¶
const ( ServiceLabel string = "app.kubernetes.io/name=tekton-results-api" ExtensionName string = "tekton-results" Group string = "results.tekton.dev" Version string = "v1alpha2" Kind string = "Client" Path string = "apis" )
Constants defining various labels, names, and paths used in the Tekton Results configuration.
Variables ¶
This section is empty.
Functions ¶
func BuildDirectClientConfig ¶ added in v0.15.1
BuildDirectClientConfig builds a client.Config from CLI flags (host, token, api-path, insecure-skip-tls-verify).
func ServerConnectionFlagsChanged ¶ added in v0.15.1
ServerConnectionFlagsChanged returns true if any server connection flags are set.
Types ¶
type Config ¶
type Config interface {
Get() *client.Config
GetObject() runtime.Object
Set(prompt bool, p common.Params) error
Reset(p common.Params) error
Validate() error
}
Config defines the interface for managing Tekton Results configuration.
func NewConfig ¶ added in v0.15.0
NewConfig creates a new Config instance based on the provided parameters.
It loads the kubeconfig, sets up the client configuration, and initializes the extension for Tekton Results.
Parameters:
- p: common.Params containing configuration parameters such as kubeconfig path and context.
Returns:
- Config: A new Config instance if successful.
- error: An error if any step in the configuration process fails.
type Extension ¶ added in v0.15.0
type Extension struct {
// TypeMeta is embedded to provide API version and kind information.
runtime.TypeMeta `json:",inline"`
// APIPath is the path to the API endpoint.
APIPath string `json:"api-path"`
// Host is the hostname or IP address of the API server.
Host string `json:"host"`
// Token is the authentication token used for API requests.
Token string `json:"token"`
// Timeout specifies the maximum duration for API requests.
// It is optional and can be omitted.
Timeout string `json:"timeout,omitempty"`
// InsecureSkipTLSVerify indicates whether to skip TLS certificate verification.
// It is optional and can be omitted. If set, it should be used with caution.
InsecureSkipTLSVerify string `json:"insecure-skip-tls-verify,omitempty"`
}
Extension represents the configuration for an API extension. It includes details necessary for connecting to and authenticating with an external API.
func (*Extension) DeepCopy ¶ added in v0.15.0
DeepCopy is an autogenerated deep copy function, copying the receiver, creating a new Extension.
func (*Extension) DeepCopyInto ¶ added in v0.15.0
DeepCopyInto is an autogenerated deep copy function, copying the receiver, writing into out. in must be non-nil.
func (*Extension) DeepCopyObject ¶ added in v0.15.0
DeepCopyObject is an autogenerated deep copy function, copying the receiver, creating a new runtime.Object.