Documentation
¶
Index ¶
- func ExtractDomain(email string) string
- func ExtractLocalPart(email string) string
- func FetchAllIdentities(client Client) ([]admina.Identity, error)
- func IsMergeAllowed(parent admina.Identity, child admina.Identity) bool
- func MaskEmail(email string) string
- func MergeIdentities(client Client, config *MergeConfig) error
- func PrintIdentityMatrix(client Client, outputFormat string) error
- func SetNoMask(flag bool)
- type CSVFormatter
- type CSVWriter
- type Client
- type Formatter
- type JSONFormatter
- type JSONMatrixFormatter
- type MarkdownFormatter
- type MarkdownMatrixFormatter
- type Matrix
- type MatrixFormatter
- type MergeCandidate
- type MergeConfig
- type MergeResult
- type MergeSummary
- type PrettyFormatter
- type PrettyMatrixFormatter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractDomain ¶ added in v0.1.0
func ExtractLocalPart ¶ added in v0.1.0
func FetchAllIdentities ¶ added in v0.1.0
Common utility functions
func IsMergeAllowed ¶ added in v1.1.0
IDのタイプを確認する関数
func MergeIdentities ¶ added in v0.1.0
func MergeIdentities(client Client, config *MergeConfig) error
func PrintIdentityMatrix ¶
Types ¶
type CSVFormatter ¶ added in v0.1.0
type CSVFormatter struct {
OutputDir string
}
CSVFormatter の実装
func (*CSVFormatter) Format ¶ added in v0.1.0
func (f *CSVFormatter) Format(result *MergeResult, mergedCount, skippedCount int) (string, error)
type CSVWriter ¶ added in v0.1.0
type CSVWriter struct {
// contains filtered or unexported fields
}
CSVWriter はCSVファイルの書き込みを行うための構造体
func NewCSVWriter ¶ added in v0.1.0
NewCSVWriter は新しいCSVWriterを作成します
type Client ¶
type Client interface { GetIdentities(ctx context.Context, cursor string) ([]admina.Identity, string, error) MergeIdentities(ctx context.Context, fromPeopleID, toPeopleID int) (admina.MergeIdentity, error) }
Client interface defines the methods required for identity operations
type Formatter ¶ added in v0.1.0
type Formatter interface {
Format(result *MergeResult, mergedCount, skippedCount int) (string, error)
}
Formatter はマージ結果のフォーマット方法を定義するインターフェース
type JSONFormatter ¶ added in v0.1.0
type JSONFormatter struct{}
JSONFormatter の実装
func (*JSONFormatter) Format ¶ added in v0.1.0
func (f *JSONFormatter) Format(result *MergeResult, mergedCount, skippedCount int) (string, error)
type JSONMatrixFormatter ¶ added in v0.1.0
type JSONMatrixFormatter struct{}
JSONMatrixFormatter の実装
type MarkdownFormatter ¶ added in v0.1.0
type MarkdownFormatter struct{}
MarkdownFormatter の実装
func (*MarkdownFormatter) Format ¶ added in v0.1.0
func (f *MarkdownFormatter) Format(result *MergeResult, mergedCount, skippedCount int) (string, error)
type MarkdownMatrixFormatter ¶ added in v0.1.0
type MarkdownMatrixFormatter struct{}
MarkdownMatrixFormatter の実装
type Matrix ¶
func GetIdentityMatrix ¶
type MatrixFormatter ¶ added in v0.1.0
Formatter はマトリックス結果のフォーマット方法を定義するインターフェース
type MergeCandidate ¶ added in v0.1.0
type MergeConfig ¶ added in v0.1.0
type MergeResult ¶ added in v0.1.0
type MergeResult struct { Candidates []MergeCandidate Unmapped []admina.Identity Summary *MergeSummary }
type MergeSummary ¶ added in v0.1.0
type PrettyFormatter ¶ added in v0.1.0
type PrettyFormatter struct{}
PrettyFormatter の実装
func (*PrettyFormatter) Format ¶ added in v0.1.0
func (f *PrettyFormatter) Format(result *MergeResult, mergedCount, skippedCount int) (string, error)
type PrettyMatrixFormatter ¶ added in v0.1.0
type PrettyMatrixFormatter struct{}
PrettyMatrixFormatter の実装
Source Files
¶
Click to show internal directories.
Click to hide internal directories.