provider

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2023 License: MPL-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const OurGb = 1000000000

Variables

This section is empty.

Functions

func AWSPolicyDiff added in v0.5.0

func AWSPolicyDiff(k, old, new string, d *schema.ResourceData) bool

func New

func New(version string) func() *schema.Provider

Types

type WekaAuthResponse

type WekaAuthResponse struct {
	Data struct {
		AccessToken  string `json:"access_token"`
		TokenType    string `json:"token_type"`
		ExpiresIn    int    `json:"expires_in"`
		RefreshToken string `json:"refresh_token"`
	} `json:"data"`
}

type WekaClient

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

type WekaErrorResponse

type WekaErrorResponse struct {
	Message string `json:"message"`
	Data    struct {
		Error  string `json:"error"`
		Reason string `json:"reason"`
	} `json:"data"`
}

type WekaFilesystem added in v0.5.0

type WekaFilesystem struct {
	Data struct {
		ID                   string `json:"id"`
		AutoMaxFiles         bool   `json:"auto_max_files"`
		UsedSsdData          int    `json:"used_ssd_data"`
		Name                 string `json:"name"`
		UID                  string `json:"uid"`
		IsRemoving           bool   `json:"is_removing"`
		GroupID              string `json:"group_id"`
		IsCreating           bool   `json:"is_creating"`
		FreeTotal            int    `json:"free_total"`
		IsEncrypted          bool   `json:"is_encrypted"`
		MetadataBudget       int    `json:"metadata_budget"`
		UsedTotalData        int    `json:"used_total_data"`
		UsedTotal            int    `json:"used_total"`
		SsdBudget            int    `json:"ssd_budget"`
		IsReady              bool   `json:"is_ready"`
		GroupName            string `json:"group_name"`
		AvailableTotal       int    `json:"available_total"`
		Status               string `json:"status"`
		UsedSsdMetadata      int    `json:"used_ssd_metadata"`
		AuthRequired         bool   `json:"auth_required"`
		AvailableSsdMetadata int    `json:"available_ssd_metadata"`
		TotalBudget          int    `json:"total_budget"`
		UsedSsd              int    `json:"used_ssd"`
		ObsBuckets           []struct {
			UID   string `json:"uid"`
			State string `json:"state"`
			ObsID string `json:"obsId"`
			Mode  string `json:"mode"`
			Name  string `json:"name"`
		} `json:"obs_buckets"`
		AvailableSsd int `json:"available_ssd"`
		FreeSsd      int `json:"free_ssd"`
	} `json:"data"`
}

type WekaFileystemGroup

type WekaFileystemGroup struct {
	Data struct {
		Name               string `json:"name"`
		StartDemote        int    `json:"start_demote"`
		TargetSSDRetention int    `json:"target_ssd_retention"`
		UID                string `json:"uid"`
		ID                 string `json:"id"`
	} `json:"data"`
}

type WekaGetUsers added in v0.5.5

type WekaGetUsers struct {
	Data []struct {
		UID      string `json:"uid"`
		OrgID    int    `json:"org_id"`
		Source   string `json:"source"`
		Username string `json:"username"`
		Role     string `json:"role"`
	} `json:"data"`
}

type WekaKMS

type WekaKMS struct {
	Data struct {
		Params struct {
			MasterKeyName string `json:"master_key_name"`
			BaseURL       string `json:"base_url"`
		} `json:"params"`
		KmsType string `json:"kms_type"`
	} `json:"data"`
}

type WekaS3Bucket added in v0.5.4

type WekaS3Bucket struct {
	Data struct {
		Buckets []struct {
			Name           string `json:"name"`
			HardLimitBytes int    `json:"hard_limit_bytes"`
			Path           string `json:"path"`
			UsedBytes      int    `json:"used_bytes"`
			FileSystem     string `json:"fs"`
		} `json:"buckets"`
	} `json:"data"`
}

type WekaUser

type WekaUser struct {
	Data struct {
		UID      string `json:"uid"`
		OrgID    int    `json:"org_id"`
		Source   string `json:"source"`
		Username string `json:"username"`
		Role     string `json:"role"`
		PosixUID int    `json:"posix_uid"`
		PosixGID int    `json:"posix_gid"`
	} `json:"data"`
}

type WekaUserPolicies added in v0.5.5

type WekaUserPolicies struct {
	Data struct {
		Users map[string]string `json:"users"`
	} `json:"data"`
}

Jump to

Keyboard shortcuts

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