client

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2025 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const HostURL string = "https://service-registry.portal.cancom.dev/v1"

Variables

View Source
var (
	CustomerDBHostURL   = "https://customer-db.portal.cancom.dev/v1"
	ServiceRegistryURL  = "https://service-registry.portal.cancom.dev/v1"
	DnsURL              = "https://vpswqliuu8.execute-api.eu-central-1.amazonaws.com/dev/v1"
	DynamicCloudURL     = "https://dynamic-cloud.portal.cancom.io"
	CmsMgwHostURL       = "https://cmsmgw.cc-mase-interfaces.de/dev"
	IpManagementHostURL = "https://ip-management.portal.cancom.io"
	WindowsOSURL        = "https://windows-os.cancom.io"
	S3ObjectStorageURL  = "https://object-storage.portal.cancom.io"
)

Functions

This section is empty.

Types

type CcpClient

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

func NewClient

func NewClient(host, token *string, role string) (*CcpClient, error)

func (*CcpClient) GetService

func (c *CcpClient) GetService(name string) (*Client, error)

func (*CcpClient) WithToken

func (c *CcpClient) WithToken(token string) *CcpClient

type Client

type Client struct {
	HostURL    string
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

func (*Client) DoRequest

func (c *Client) DoRequest(req *http.Request) ([]byte, error)

func (*Client) DoRequestWithRetry

func (c *Client) DoRequestWithRetry(req *http.Request, policy func(resp *http.Response) bool) ([]byte, error)

type CreateServiceBody

type CreateServiceBody struct {
	OverwriteService        bool            `json:"overwriteService"`
	DisplayName             string          `json:"displayName"`
	ServiceDocumentation    string          `json:"serviceDocumentation"`
	Route                   string          `json:"route"`
	RelatedIamPermissions   []string        `json:"relatedIamPermissions"`
	RelatedServices         []string        `json:"relatedServices"`
	RequiredServiceAccounts []string        `json:"requiredServiceAccounts"`
	Keywords                []string        `json:"keywords"`
	ServiceEndpoint         ServiceEndpoint `json:"serviceEndpoint"`
}

type Service

type Service struct {
	ServiceName             string          `json:"serviceName"`
	DisplayName             string          `json:"displayName"`
	Route                   string          `json:"route"`
	ServiceDocumentation    string          `json:"serviceDocumentation"`
	RelatedIamPermissions   []string        `json:"relatedIamPermissions"`
	RelatedServices         []string        `json:"relatedServices"`
	RequiredServiceAccounts []string        `json:"requiredServiceAccounts"`
	Keywords                []string        `json:"keywords"`
	ServiceEndpoint         ServiceEndpoint `json:"serviceEndpoint"`
}

type ServiceEndpoint

type ServiceEndpoint struct {
	Frontend string `json:"frontend"`
	Backend  string `json:"backend"`
}

Directories

Path Synopsis
services
dns
iam

Jump to

Keyboard shortcuts

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