k8s

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package k8s provides a client for interacting with Kubernetes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FetchDataFunction

type FetchDataFunction func(ctx context.Context, p Provider, teamId primitive.ObjectID) ([]*models.Resource, error)

FetchDataFunction is a function that fetches data from Kubernetes.

type Provider

type Provider struct {
	Client *kubernetes.Clientset
}

Provider is a client for interacting with Kubernetes.

func NewProvider

func NewProvider() *Provider

NewProvider creates a new Provider.

func (*Provider) FetchResources

func (p *Provider) FetchResources(teamId primitive.ObjectID) ([]*models.Resource, error)

FetchResources fetches resources from Kubernetes.

Directories

Path Synopsis
Package core provides a client for fetching resource data from Kubernetes.
Package core provides a client for fetching resource data from Kubernetes.

Jump to

Keyboard shortcuts

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