project

package
v0.0.50 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectProjectMonitoringURLs

func DetectProjectMonitoringURLs(kc client.Client, promNS string) (alertmanagerURL, grafanaURL, prometheusURL string)

func FindSiblingAlertManagerForPrometheus

func FindSiblingAlertManagerForPrometheus(kc client.Client, key types.NamespacedName) (*monitoringv1.Alertmanager, error)

func GetRancherProject

func GetRancherProject(kc client.Client, projectId string) (*rscoreapi.Project, error)

func ListRancherProjects

func ListRancherProjects(kc client.Client) ([]rscoreapi.Project, error)

func NewDefaultTableConvertor

func NewDefaultTableConvertor(defaultQualifiedResource schema.GroupResource) rest.TableConvertor

NewDefaultTableConvertor creates a default convertor; the provided resource is used for error messages if no resource info can be determined from the context passed to ConvertToTable.

Types

type Storage

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

func NewStorage

func NewStorage(kc client.Client) *Storage

func (*Storage) ConvertToTable

func (r *Storage) ConvertToTable(ctx context.Context, object runtime.Object, tableOptions runtime.Object) (*metav1.Table, error)

func (*Storage) Destroy

func (r *Storage) Destroy()

func (*Storage) Get

func (r *Storage) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)

func (*Storage) GetSingularName added in v0.0.40

func (r *Storage) GetSingularName() string

func (*Storage) GroupVersionKind

func (r *Storage) GroupVersionKind(_ schema.GroupVersion) schema.GroupVersionKind

func (*Storage) List

func (*Storage) NamespaceScoped

func (r *Storage) NamespaceScoped() bool

func (*Storage) New

func (r *Storage) New() runtime.Object

func (*Storage) NewList

func (r *Storage) NewList() runtime.Object

Jump to

Keyboard shortcuts

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