Documentation ¶
Index ¶
- Variables
- func New(_ context.Context, logger zerolog.Logger, s specs.Source, opts source.Options) (schema.ClientMeta, error)
- func RegionMultiplex(meta schema.ClientMeta) []schema.ClientMeta
- func RegionMultiplexExcept(except ...scw.Region) schema.Multiplexer
- func RegionMultiplexSelective(list ...scw.Region) schema.Multiplexer
- func RegionMultiplexService(service string) schema.Multiplexer
- func ResolveClientRegion(_ context.Context, meta schema.ClientMeta, r *schema.Resource, c schema.Column) error
- func ResolveClientZone(_ context.Context, meta schema.ClientMeta, r *schema.Resource, c schema.Column) error
- func TestHelper(t *testing.T, table *schema.Table, createServices func(*mux.Router) error)
- func ZoneMultiplex(meta schema.ClientMeta) []schema.ClientMeta
- func ZoneMultiplexExcept(except ...scw.Zone) schema.Multiplexer
- func ZoneMultiplexSelective(list ...scw.Zone) schema.Multiplexer
- func ZoneMultiplexService(service string) schema.Multiplexer
- type Client
- type Spec
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ZonePK = schema.Column{ Name: "zone", Type: schema.TypeString, Resolver: ResolveClientZone, CreationOptions: schema.ColumnCreationOptions{ PrimaryKey: true, }, } RegionPK = schema.Column{ Name: "region", Type: schema.TypeString, Resolver: ResolveClientRegion, CreationOptions: schema.ColumnCreationOptions{ PrimaryKey: true, }, } )
View Source
var TestOrgID = "DECAF000-CAFE-0000-0000-000000000000"
Functions ¶
func RegionMultiplex ¶
func RegionMultiplex(meta schema.ClientMeta) []schema.ClientMeta
func RegionMultiplexExcept ¶
func RegionMultiplexExcept(except ...scw.Region) schema.Multiplexer
func RegionMultiplexSelective ¶
func RegionMultiplexSelective(list ...scw.Region) schema.Multiplexer
func RegionMultiplexService ¶
func RegionMultiplexService(service string) schema.Multiplexer
func ResolveClientRegion ¶
func ResolveClientZone ¶
func TestHelper ¶
func ZoneMultiplex ¶
func ZoneMultiplex(meta schema.ClientMeta) []schema.ClientMeta
func ZoneMultiplexExcept ¶
func ZoneMultiplexExcept(except ...scw.Zone) schema.Multiplexer
func ZoneMultiplexSelective ¶
func ZoneMultiplexSelective(list ...scw.Zone) schema.Multiplexer
func ZoneMultiplexService ¶
func ZoneMultiplexService(service string) schema.Multiplexer
Types ¶
Click to show internal directories.
Click to hide internal directories.