This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{%- set archs = {'amd64': 'x86_64', 'i386': 'x86_32'} %} | |
{%- set system = '-'.join([salt['grains.get']('os'), salt['grains.get']('osrelease').split('.', 1)[0], archs.get(salt['grains.get']('osarch'), salt['grains.get']('osarch'))]).lower() %} | |
{%- set hostname, domainname = grains['id'].split('.',1) %} | |
{%- set project = '_'.join(domainname.split('.')[-2:]) %} | |
{%- set environment = domainname.replace('.','_') %} | |
{%- set roles = salt['pillar.get']('roles', []) %} | |
{%- from "macros.jinja" import include with context %} | |
base: | |
'*': | |
{{ include("systems/{0}/common".format(system)) }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package breaker | |
import ( | |
"context" | |
"sync" | |
"github.com/micro/go-micro/client" | |
"github.com/micro/go-micro/errors" | |
"github.com/sony/gobreaker" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package breaker | |
import ( | |
"context" | |
"sync" | |
"github.com/micro/go-micro/client" | |
"github.com/micro/go-micro/errors" | |
"github.com/sony/gobreaker" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package policy | |
import ( | |
"context" | |
"github.com/micro/go-micro/client" | |
"github.com/micro/go-micro/server" | |
"unistack.org/centralv2/service/policy/policypb" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package errors | |
import ( | |
"encoding/json" | |
"fmt" | |
"log" | |
"net/http" | |
"github.com/micro/go-micro/errors" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
syntax = "proto3"; | |
package unistack; | |
option go_package = "unistackpb"; | |
import "list.proto"; | |
import "google/api/annotations.proto"; | |
import "google/protobuf/empty.proto"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package multi | |
import ( | |
"context" | |
"sync" | |
"github.com/micro/go-micro/registry" | |
log "github.com/micro/go-micro/util/log" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package multi | |
import ( | |
"context" | |
"github.com/micro/go-micro/registry" | |
) | |
type writeKey struct{} | |
type readKey struct{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package multi | |
import ( | |
"sync" | |
"github.com/micro/go-micro/registry" | |
) | |
type multiWatcher struct { | |
wo registry.WatchOptions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"openapi": "3.0.3", | |
"info": { | |
"title": "APIGW spec", | |
"description": "apigw service", | |
"version": "0.0.1" | |
}, | |
"paths": { | |
"path": [ | |
{ |