Documentation ¶
Index ¶
- func Delete(client *occlient.Client, urlName string, applicationName string) error
- func Exists(client *occlient.Client, urlName string, componentName string, ...) (bool, error)
- func GetComponentServicePortNumbers(client *occlient.Client, componentName string, applicationName string) ([]int, error)
- func GetURLString(url URL) string
- type URL
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Exists ¶ added in v0.0.9
func Exists(client *occlient.Client, urlName string, componentName string, applicationName string) (bool, error)
Exists checks if the url exists in the component or not urlName is the name of the url for checking componentName is the name of the component to which the url's existence is checked applicationName is the name of the application to which the url's existence is checked
func GetComponentServicePortNumbers ¶ added in v0.0.10
func GetComponentServicePortNumbers(client *occlient.Client, componentName string, applicationName string) ([]int, error)
GetComponentServicePortNumbers returns the port numbers exposed by the service of the component componentName is the name of the component applicationName is the name of the application
func GetURLString ¶ added in v0.0.17
GetURLString returns a string representation of given url
Types ¶
type URL ¶
func Create ¶
func Create(client *occlient.Client, urlName string, portNumber int, componentName, applicationName string) (*URL, error)
Create creates a URL portNumber is the target port number for the route and is -1 in case no port number is specified in which case it is automatically detected for components which expose only one service port)