{"modulePath":"github.com/flashbots/cvm-reverse-proxy","version":"v0.1.9","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package openstack\n\n## Types\n\n```go\ntype AccountKey struct {\n\tAuthURL           string\n\tUsername          string\n\tPassword          string\n\tProjectID         string\n\tProjectName       string\n\tUserDomainName    string\n\tProjectDomainName string\n\tRegionName        string\n}\n```\nAccountKey is a OpenStack account key.\n\n```go\nfunc AccountKeyFromURI(serviceAccountURI string) (AccountKey, error)\n```\nAccountKeyFromURI parses ServiceAccountKey from URI.\n\n```go\nfunc (k AccountKey) CloudINI() CloudINI\n```\nCloudINI converts the AccountKey into a CloudINI.\n\n```go\nfunc (k AccountKey) ToCloudServiceAccountURI() string\n```\nToCloudServiceAccountURI converts the AccountKey into a cloud service account URI.\n\n```go\ntype CloudINI struct {\n\tAuthURL          string `gcfg:\"auth-url\" mapstructure:\"auth-url\" name:\"os-authURL\" dependsOn:\"os-password|os-trustID|os-applicationCredentialSecret|os-clientCertPath\"`\n\tUsername         string `name:\"os-userName\" value:\"optional\" dependsOn:\"os-password\"`\n\tPassword         string `name:\"os-password\" value:\"optional\" dependsOn:\"os-domainID|os-domainName,os-projectID|os-projectName,os-userID|os-userName\"`\n\tProjectID        string `gcfg:\"project-id\" mapstructure:\"project-id\" name:\"os-projectID\" value:\"optional\" dependsOn:\"os-password|os-clientCertPath\"`\n\tTenantName       string `gcfg:\"tenant-name\" mapstructure:\"project-name\" name:\"os-projectName\" value:\"optional\" dependsOn:\"os-password|os-clientCertPath\"`\n\tUserDomainName   string `gcfg:\"user-domain-name\" mapstructure:\"user-domain-name\" name:\"os-userDomainName\" value:\"optional\"`\n\tTenantDomainName string `gcfg:\"tenant-domain-name\" mapstructure:\"project-domain-name\" name:\"os-projectDomainName\" value:\"optional\"`\n\tRegion           string `name:\"os-region\"`\n}\n```\nCloudINI is a struct that represents the cloud.ini file used by OpenStack k8s deployments.\n\n```go\nfunc (i CloudINI) CinderCSIConfiguration() string\n```\nCinderCSIConfiguration returns the string representation of the CloudINI subset cinder expects.\n\n```go\nfunc (i CloudINI) FullConfiguration() string\n```\nFullConfiguration returns the string representation of the full CloudINI.\n\n```go\nfunc (i CloudINI) YawolConfiguration() string\n```\nYawolConfiguration returns the string representation of the CloudINI subset yawol expects.\n\n```go\ntype MetadataClient struct {\n\t// contains filtered or unexported fields\n}\n```\nMetadataClient is the metadata client for OpenStack.\n\n```go\nfunc New(ctx context.Context) (*MetadataClient, error)\n```\nNew creates a new OpenStack metadata client.\n\n```go\nfunc (c *MetadataClient) GetLoadBalancerEndpoint(ctx context.Context) (host, port string, err error)\n```\nGetLoadBalancerEndpoint returns the endpoint of the load balancer. For OpenStack, the load balancer is a floating ip attached to a control plane node. TODO(malt3): Rewrite to use real load balancer once it is available.\n\n```go\nfunc (c *MetadataClient) InitSecretHash(ctx context.Context) ([]byte, error)\n```\nInitSecretHash retrieves the InitSecretHash of the current instance.\n\n```go\nfunc (c *MetadataClient) List(ctx context.Context) ([]metadata.InstanceMetadata, error)\n```\nList returns the metadata of all instances belonging to the same Constellation cluster.\n\n```go\nfunc (c *MetadataClient) Self(ctx context.Context) (metadata.InstanceMetadata, error)\n```\nSelf returns the metadata of the current instance.\n\n```go\nfunc (c *MetadataClient) UID(ctx context.Context) (string, error)\n```\nUID retrieves the UID of the constellation.\n\n","path":"github.com/flashbots/cvm-reverse-proxy/internal/cloud/openstack","name":"openstack","synopsis":"","isRedistributable":true}
