url

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package url provides URL normalization utilities for Rancher API endpoints.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNormanURL

func GetNormanURL(baseURL string) string

GetNormanURL returns URL with /v3 for Norman API

func GetSteveURL

func GetSteveURL(baseURL string, clusterID string) string

GetSteveURL returns URL for Steve API cluster access

func NormalizeRancherURL

func NormalizeRancherURL(url string) string

NormalizeRancherURL handles both URL formats: - "https://rancher.example.com/v3" -> strips /v3 - "https://rancher.example.com" -> uses as-is

Types

This section is empty.

Jump to

Keyboard shortcuts

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