Documentation ¶
Index ¶
- func DetectProjectMonitoringURLs(kc client.Client, promNS string) (alertmanagerURL, grafanaURL, prometheusURL string)
- func FindSiblingAlertManagerForPrometheus(kc client.Client, key types.NamespacedName) (*monitoringv1.Alertmanager, error)
- func GetRancherProject(kc client.Client, projectId string) (*rscoreapi.Project, error)
- func ListRancherProjects(kc client.Client) ([]rscoreapi.Project, error)
- func NewDefaultTableConvertor(defaultQualifiedResource schema.GroupResource) rest.TableConvertor
- type Storage
- func (r *Storage) ConvertToTable(ctx context.Context, object runtime.Object, tableOptions runtime.Object) (*metav1.Table, error)
- func (r *Storage) Destroy()
- func (r *Storage) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)
- func (r *Storage) GetSingularName() string
- func (r *Storage) GroupVersionKind(_ schema.GroupVersion) schema.GroupVersionKind
- func (r *Storage) List(ctx context.Context, options *internalversion.ListOptions) (runtime.Object, error)
- func (r *Storage) NamespaceScoped() bool
- func (r *Storage) New() runtime.Object
- func (r *Storage) NewList() runtime.Object
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindSiblingAlertManagerForPrometheus ¶
func FindSiblingAlertManagerForPrometheus(kc client.Client, key types.NamespacedName) (*monitoringv1.Alertmanager, error)
func GetRancherProject ¶
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 (*Storage) ConvertToTable ¶
func (*Storage) GetSingularName ¶ added in v0.0.40
func (*Storage) GroupVersionKind ¶
func (r *Storage) GroupVersionKind(_ schema.GroupVersion) schema.GroupVersionKind
func (*Storage) List ¶
func (r *Storage) List(ctx context.Context, options *internalversion.ListOptions) (runtime.Object, error)
func (*Storage) NamespaceScoped ¶
Click to show internal directories.
Click to hide internal directories.