Documentation ¶
Overview ¶
Package talos implements the connector that can pull data from the Talos controller runtime.
Index ¶
- Variables
- func CurrentContext() (string, error)
- func GetContexts() ([]*rpc.Context, error)
- func WithNodes(ctx context.Context, context *common.Context) context.Context
- type Runtime
- func (r *Runtime) AddContext(id string, data []byte) error
- func (r *Runtime) Create(ctx context.Context, resource cosiresource.Resource, ...) error
- func (r *Runtime) Delete(ctx context.Context, setters ...runtime.QueryOption) error
- func (r *Runtime) Get(ctx context.Context, setters ...runtime.QueryOption) (interface{}, error)
- func (r *Runtime) GetClient(ctx context.Context, context *common.Context) (*client.Client, error)
- func (r *Runtime) GetContext(ctx context.Context, context *common.Context, cluster *common.Cluster) ([]byte, error)
- func (r *Runtime) GetKubeconfig(ctx context.Context, context *common.Context) (*rest.Config, error)
- func (r *Runtime) List(ctx context.Context, setters ...runtime.QueryOption) ([]interface{}, error)
- func (r *Runtime) Update(ctx context.Context, resource cosiresource.Resource, ...) error
- func (r *Runtime) Watch(ctx context.Context, request *message.WatchSpec, events chan runtime.Event) error
- type Watch
Constants ¶
This section is empty.
Variables ¶
View Source
var Name = common.Runtime_Talos.String()
Name talos runtime string id.
Functions ¶
func CurrentContext ¶ added in v0.2.1
CurrentContext returns current local context.
func GetContexts ¶ added in v0.2.1
GetContexts returns all locally defined contexts in the talosconfig.
Types ¶
type Runtime ¶
type Runtime struct {
// contains filtered or unexported fields
}
Runtime implements runtime.Runtime for Talos resources.
func (*Runtime) AddContext ¶
AddContext implements runtime.Runtime.
func (*Runtime) Create ¶
func (r *Runtime) Create(ctx context.Context, resource cosiresource.Resource, setters ...runtime.QueryOption) error
Create implements runtime.Runtime.
func (*Runtime) GetContext ¶
func (r *Runtime) GetContext(ctx context.Context, context *common.Context, cluster *common.Cluster) ([]byte, error)
GetContext implements runtime.Runtime.
func (*Runtime) GetKubeconfig ¶ added in v0.2.1
GetKubeconfig returns kubeconfig for the cluster.
func (*Runtime) Update ¶
func (r *Runtime) Update(ctx context.Context, resource cosiresource.Resource, setters ...runtime.QueryOption) error
Update implements runtime.Runtime.
Click to show internal directories.
Click to hide internal directories.