Package cloud.google.com/go/cloudsqlconn/instance (v1.11.0)

ConnName

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

ConnName represents the "instance connection name", in the format "project:region:name".

func ParseConnName

func ParseConnName(cn string) (ConnName, error)

ParseConnName initializes a new ConnName struct.

func (*ConnName) Name

func (c *ConnName) Name() string

Name returns the Cloud SQL instance name

func (*ConnName) Project

func (c *ConnName) Project() string

Project returns the project within which the Cloud SQL instance runs.

func (*ConnName) Region

func (c *ConnName) Region() string

Region returns the region where the Cloud SQL instance runs.

func (*ConnName) String

func (c *ConnName) String() string