Documentation ¶
Index ¶
- func RegisterCerbosPolicy(log logging.Logger) error
- func RegisterService(log logging.Logger) error
- type Client
- func (c *Client) GetOAuthURL() string
- func (c *Client) RegisterAppClientSecrets(ctx context.Context, clientName, redirectURL, organisationid string) (string, string, error)
- func (c *Client) RegisterCerbosPolicy() error
- func (c *Client) RegisterRolesActions() error
- func (c *Client) RegisterService() error
- type Config
- type IAMRegister
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterCerbosPolicy ¶
func RegisterService ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetOAuthURL ¶
func (*Client) RegisterAppClientSecrets ¶
func (*Client) RegisterCerbosPolicy ¶
func (*Client) RegisterRolesActions ¶
func (*Client) RegisterService ¶
type Config ¶
type Config struct { IAMURL string `envconfig:"IAM_URL" required:"true"` ServiceRegister bool `envconfig:"SERVICE_REGISTER" default:"true"` ServiceName string `envconfig:"SERVICE_NAME" default:"capten-server"` ServiceRolesConfigFilePath string `envconfig:"SERVICE_ROLES_CONFIG_FILE_PATH" default:"/data/service-config/roles.yaml"` CerbosResourcePolicyFilePath string `envconfig:"SERVICE_ROLES_CONFIG_FILE_PATH" default:"/data/cerbos-policy-config/resource-policy.yaml"` PolicyRegister bool `envconfig:"CERBOS_POLICY_REGISTER" default:"true"` }
Click to show internal directories.
Click to hide internal directories.