state

package
v1.0.0-cli.0...-421df98 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2026 License: AGPL-3.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfig = Config{
	ControlPlaneEndpoint: "explorer.api.chunks.space:443",
	IDPIssuerEndpoint:    "https://iam.chunks.space",
	IDPClientID:          "385828015612952672",
	IDPScopes: []string{
		oidc.ScopeOpenID,
		"profile",
		"email",
		"urn:zitadel:iam:org:id:385828012106448992",
	},
}

Functions

This section is empty.

Types

type Config

type Config struct {
	ControlPlaneEndpoint string   `json:"controlPlaneEndpoint"`
	IDPIssuerEndpoint    string   `json:"idpIssuerEndpoint"`
	IDPClientID          string   `json:"idpClientId"`
	IDPScopes            []string `json:"idpScopes"`
}

type Data

type Data struct {
	ActiveProfile string                 `json:"activeProfile"`
	Profiles      map[string]ProfileData `json:"profiles"`
}

func New

func New() (Data, error)

func (*Data) ActiveProfileAccessToken

func (d *Data) ActiveProfileAccessToken() string

func (*Data) SetActiveProfile

func (d *Data) SetActiveProfile(profile string)

func (*Data) UpdateActiveProfile

func (d *Data) UpdateActiveProfile(profile string)

func (*Data) UpdateProfileData

func (d *Data) UpdateProfileData(profile string, new ProfileData)

type ProfileData

type ProfileData struct {
	AccessToken string `json:"accessToken"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL