id int32 0 167k | repo stringlengths 5 54 | path stringlengths 4 155 | func_name stringlengths 1 118 | original_string stringlengths 52 85.5k | language stringclasses 1
value | code stringlengths 52 85.5k | code_tokens listlengths 21 1.41k | docstring stringlengths 6 2.61k | docstring_tokens listlengths 3 215 | sha stringlengths 40 40 | url stringlengths 85 252 |
|---|---|---|---|---|---|---|---|---|---|---|---|
161,900 | argoproj/argo-cd | pkg/apis/application/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *ApplicationTree) DeepCopy() *ApplicationTree {
if in == nil {
return nil
}
out := new(ApplicationTree)
in.DeepCopyInto(out)
return out
} | go | func (in *ApplicationTree) DeepCopy() *ApplicationTree {
if in == nil {
return nil
}
out := new(ApplicationTree)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"ApplicationTree",
")",
"DeepCopy",
"(",
")",
"*",
"ApplicationTree",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"ApplicationTree",
")",
"\n",
"in",
".",
"DeepCopyInto",
"(",
... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationTree. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"ApplicationTree",
"."
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/pkg/apis/application/v1alpha1/zz_generated.deepcopy.go#L496-L503 |
161,901 | argoproj/argo-cd | pkg/apis/application/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *ApplicationWatchEvent) DeepCopy() *ApplicationWatchEvent {
if in == nil {
return nil
}
out := new(ApplicationWatchEvent)
in.DeepCopyInto(out)
return out
} | go | func (in *ApplicationWatchEvent) DeepCopy() *ApplicationWatchEvent {
if in == nil {
return nil
}
out := new(ApplicationWatchEvent)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"ApplicationWatchEvent",
")",
"DeepCopy",
"(",
")",
"*",
"ApplicationWatchEvent",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"ApplicationWatchEvent",
")",
"\n",
"in",
".",
"DeepCo... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ApplicationWatchEvent. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"ApplicationWatchEvent",
"."
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/pkg/apis/application/v1alpha1/zz_generated.deepcopy.go#L513-L520 |
161,902 | argoproj/argo-cd | pkg/apis/application/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *ClusterConfig) DeepCopy() *ClusterConfig {
if in == nil {
return nil
}
out := new(ClusterConfig)
in.DeepCopyInto(out)
return out
} | go | func (in *ClusterConfig) DeepCopy() *ClusterConfig {
if in == nil {
return nil
}
out := new(ClusterConfig)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"ClusterConfig",
")",
"DeepCopy",
"(",
")",
"*",
"ClusterConfig",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"ClusterConfig",
")",
"\n",
"in",
".",
"DeepCopyInto",
"(",
"out",... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterConfig. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"ClusterConfig",
"."
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/pkg/apis/application/v1alpha1/zz_generated.deepcopy.go#L553-L560 |
161,903 | argoproj/argo-cd | pkg/apis/application/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *Command) DeepCopy() *Command {
if in == nil {
return nil
}
out := new(Command)
in.DeepCopyInto(out)
return out
} | go | func (in *Command) DeepCopy() *Command {
if in == nil {
return nil
}
out := new(Command)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"Command",
")",
"DeepCopy",
"(",
")",
"*",
"Command",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"Command",
")",
"\n",
"in",
".",
"DeepCopyInto",
"(",
"out",
")",
"\n",
... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Command. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"Command",
"."
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/pkg/apis/application/v1alpha1/zz_generated.deepcopy.go#L603-L610 |
161,904 | argoproj/argo-cd | pkg/apis/application/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *ComparedTo) DeepCopy() *ComparedTo {
if in == nil {
return nil
}
out := new(ComparedTo)
in.DeepCopyInto(out)
return out
} | go | func (in *ComparedTo) DeepCopy() *ComparedTo {
if in == nil {
return nil
}
out := new(ComparedTo)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"ComparedTo",
")",
"DeepCopy",
"(",
")",
"*",
"ComparedTo",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"ComparedTo",
")",
"\n",
"in",
".",
"DeepCopyInto",
"(",
"out",
")",
... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ComparedTo. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"ComparedTo",
"."
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/pkg/apis/application/v1alpha1/zz_generated.deepcopy.go#L621-L628 |
161,905 | argoproj/argo-cd | pkg/apis/application/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *ComponentParameter) DeepCopy() *ComponentParameter {
if in == nil {
return nil
}
out := new(ComponentParameter)
in.DeepCopyInto(out)
return out
} | go | func (in *ComponentParameter) DeepCopy() *ComponentParameter {
if in == nil {
return nil
}
out := new(ComponentParameter)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"ComponentParameter",
")",
"DeepCopy",
"(",
")",
"*",
"ComponentParameter",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"ComponentParameter",
")",
"\n",
"in",
".",
"DeepCopyInto",
... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ComponentParameter. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"ComponentParameter",
"."
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/pkg/apis/application/v1alpha1/zz_generated.deepcopy.go#L637-L644 |
161,906 | argoproj/argo-cd | pkg/apis/application/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *ConfigManagementPlugin) DeepCopy() *ConfigManagementPlugin {
if in == nil {
return nil
}
out := new(ConfigManagementPlugin)
in.DeepCopyInto(out)
return out
} | go | func (in *ConfigManagementPlugin) DeepCopy() *ConfigManagementPlugin {
if in == nil {
return nil
}
out := new(ConfigManagementPlugin)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"ConfigManagementPlugin",
")",
"DeepCopy",
"(",
")",
"*",
"ConfigManagementPlugin",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"ConfigManagementPlugin",
")",
"\n",
"in",
".",
"Dee... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigManagementPlugin. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"ConfigManagementPlugin",
"."
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/pkg/apis/application/v1alpha1/zz_generated.deepcopy.go#L659-L666 |
161,907 | argoproj/argo-cd | pkg/apis/application/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *ConnectionState) DeepCopy() *ConnectionState {
if in == nil {
return nil
}
out := new(ConnectionState)
in.DeepCopyInto(out)
return out
} | go | func (in *ConnectionState) DeepCopy() *ConnectionState {
if in == nil {
return nil
}
out := new(ConnectionState)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"ConnectionState",
")",
"DeepCopy",
"(",
")",
"*",
"ConnectionState",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"ConnectionState",
")",
"\n",
"in",
".",
"DeepCopyInto",
"(",
... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConnectionState. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"ConnectionState",
"."
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/pkg/apis/application/v1alpha1/zz_generated.deepcopy.go#L679-L686 |
161,908 | argoproj/argo-cd | pkg/apis/application/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *HealthStatus) DeepCopy() *HealthStatus {
if in == nil {
return nil
}
out := new(HealthStatus)
in.DeepCopyInto(out)
return out
} | go | func (in *HealthStatus) DeepCopy() *HealthStatus {
if in == nil {
return nil
}
out := new(HealthStatus)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"HealthStatus",
")",
"DeepCopy",
"(",
")",
"*",
"HealthStatus",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"HealthStatus",
")",
"\n",
"in",
".",
"DeepCopyInto",
"(",
"out",
... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HealthStatus. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"HealthStatus",
"."
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/pkg/apis/application/v1alpha1/zz_generated.deepcopy.go#L695-L702 |
161,909 | argoproj/argo-cd | pkg/apis/application/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *HelmParameter) DeepCopy() *HelmParameter {
if in == nil {
return nil
}
out := new(HelmParameter)
in.DeepCopyInto(out)
return out
} | go | func (in *HelmParameter) DeepCopy() *HelmParameter {
if in == nil {
return nil
}
out := new(HelmParameter)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"HelmParameter",
")",
"DeepCopy",
"(",
")",
"*",
"HelmParameter",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"HelmParameter",
")",
"\n",
"in",
".",
"DeepCopyInto",
"(",
"out",... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HelmParameter. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"HelmParameter",
"."
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/pkg/apis/application/v1alpha1/zz_generated.deepcopy.go#L711-L718 |
161,910 | argoproj/argo-cd | pkg/apis/application/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *HelmRepository) DeepCopy() *HelmRepository {
if in == nil {
return nil
}
out := new(HelmRepository)
in.DeepCopyInto(out)
return out
} | go | func (in *HelmRepository) DeepCopy() *HelmRepository {
if in == nil {
return nil
}
out := new(HelmRepository)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"HelmRepository",
")",
"DeepCopy",
"(",
")",
"*",
"HelmRepository",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"HelmRepository",
")",
"\n",
"in",
".",
"DeepCopyInto",
"(",
"ou... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HelmRepository. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"HelmRepository",
"."
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/pkg/apis/application/v1alpha1/zz_generated.deepcopy.go#L742-L749 |
161,911 | argoproj/argo-cd | pkg/apis/application/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *InfoItem) DeepCopy() *InfoItem {
if in == nil {
return nil
}
out := new(InfoItem)
in.DeepCopyInto(out)
return out
} | go | func (in *InfoItem) DeepCopy() *InfoItem {
if in == nil {
return nil
}
out := new(InfoItem)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"InfoItem",
")",
"DeepCopy",
"(",
")",
"*",
"InfoItem",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"InfoItem",
")",
"\n",
"in",
".",
"DeepCopyInto",
"(",
"out",
")",
"\n",... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InfoItem. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"InfoItem",
"."
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/pkg/apis/application/v1alpha1/zz_generated.deepcopy.go#L758-L765 |
161,912 | argoproj/argo-cd | pkg/apis/application/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *JWTToken) DeepCopy() *JWTToken {
if in == nil {
return nil
}
out := new(JWTToken)
in.DeepCopyInto(out)
return out
} | go | func (in *JWTToken) DeepCopy() *JWTToken {
if in == nil {
return nil
}
out := new(JWTToken)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"JWTToken",
")",
"DeepCopy",
"(",
")",
"*",
"JWTToken",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"JWTToken",
")",
"\n",
"in",
".",
"DeepCopyInto",
"(",
"out",
")",
"\n",... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JWTToken. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"JWTToken",
"."
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/pkg/apis/application/v1alpha1/zz_generated.deepcopy.go#L774-L781 |
161,913 | argoproj/argo-cd | pkg/apis/application/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *JsonnetVar) DeepCopy() *JsonnetVar {
if in == nil {
return nil
}
out := new(JsonnetVar)
in.DeepCopyInto(out)
return out
} | go | func (in *JsonnetVar) DeepCopy() *JsonnetVar {
if in == nil {
return nil
}
out := new(JsonnetVar)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"JsonnetVar",
")",
"DeepCopy",
"(",
")",
"*",
"JsonnetVar",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"JsonnetVar",
")",
"\n",
"in",
".",
"DeepCopyInto",
"(",
"out",
")",
... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JsonnetVar. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"JsonnetVar",
"."
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/pkg/apis/application/v1alpha1/zz_generated.deepcopy.go#L790-L797 |
161,914 | argoproj/argo-cd | pkg/apis/application/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *KsonnetParameter) DeepCopy() *KsonnetParameter {
if in == nil {
return nil
}
out := new(KsonnetParameter)
in.DeepCopyInto(out)
return out
} | go | func (in *KsonnetParameter) DeepCopy() *KsonnetParameter {
if in == nil {
return nil
}
out := new(KsonnetParameter)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"KsonnetParameter",
")",
"DeepCopy",
"(",
")",
"*",
"KsonnetParameter",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"KsonnetParameter",
")",
"\n",
"in",
".",
"DeepCopyInto",
"(",... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KsonnetParameter. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"KsonnetParameter",
"."
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/pkg/apis/application/v1alpha1/zz_generated.deepcopy.go#L806-L813 |
161,915 | argoproj/argo-cd | pkg/apis/application/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *KustomizeImageTag) DeepCopy() *KustomizeImageTag {
if in == nil {
return nil
}
out := new(KustomizeImageTag)
in.DeepCopyInto(out)
return out
} | go | func (in *KustomizeImageTag) DeepCopy() *KustomizeImageTag {
if in == nil {
return nil
}
out := new(KustomizeImageTag)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"KustomizeImageTag",
")",
"DeepCopy",
"(",
")",
"*",
"KustomizeImageTag",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"KustomizeImageTag",
")",
"\n",
"in",
".",
"DeepCopyInto",
"... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KustomizeImageTag. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"KustomizeImageTag",
"."
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/pkg/apis/application/v1alpha1/zz_generated.deepcopy.go#L822-L829 |
161,916 | argoproj/argo-cd | pkg/apis/application/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *Operation) DeepCopy() *Operation {
if in == nil {
return nil
}
out := new(Operation)
in.DeepCopyInto(out)
return out
} | go | func (in *Operation) DeepCopy() *Operation {
if in == nil {
return nil
}
out := new(Operation)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"Operation",
")",
"DeepCopy",
"(",
")",
"*",
"Operation",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"Operation",
")",
"\n",
"in",
".",
"DeepCopyInto",
"(",
"out",
")",
"\... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Operation. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"Operation",
"."
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/pkg/apis/application/v1alpha1/zz_generated.deepcopy.go#L843-L850 |
161,917 | argoproj/argo-cd | pkg/apis/application/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *OperationState) DeepCopy() *OperationState {
if in == nil {
return nil
}
out := new(OperationState)
in.DeepCopyInto(out)
return out
} | go | func (in *OperationState) DeepCopy() *OperationState {
if in == nil {
return nil
}
out := new(OperationState)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"OperationState",
")",
"DeepCopy",
"(",
")",
"*",
"OperationState",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"OperationState",
")",
"\n",
"in",
".",
"DeepCopyInto",
"(",
"ou... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OperationState. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"OperationState",
"."
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/pkg/apis/application/v1alpha1/zz_generated.deepcopy.go#L870-L877 |
161,918 | argoproj/argo-cd | pkg/apis/application/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *ProjectRole) DeepCopy() *ProjectRole {
if in == nil {
return nil
}
out := new(ProjectRole)
in.DeepCopyInto(out)
return out
} | go | func (in *ProjectRole) DeepCopy() *ProjectRole {
if in == nil {
return nil
}
out := new(ProjectRole)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"ProjectRole",
")",
"DeepCopy",
"(",
")",
"*",
"ProjectRole",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"ProjectRole",
")",
"\n",
"in",
".",
"DeepCopyInto",
"(",
"out",
")"... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectRole. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"ProjectRole",
"."
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/pkg/apis/application/v1alpha1/zz_generated.deepcopy.go#L901-L908 |
161,919 | argoproj/argo-cd | pkg/apis/application/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *Repository) DeepCopy() *Repository {
if in == nil {
return nil
}
out := new(Repository)
in.DeepCopyInto(out)
return out
} | go | func (in *Repository) DeepCopy() *Repository {
if in == nil {
return nil
}
out := new(Repository)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"Repository",
")",
"DeepCopy",
"(",
")",
"*",
"Repository",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"Repository",
")",
"\n",
"in",
".",
"DeepCopyInto",
"(",
"out",
")",
... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Repository. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"Repository",
"."
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/pkg/apis/application/v1alpha1/zz_generated.deepcopy.go#L918-L925 |
161,920 | argoproj/argo-cd | pkg/apis/application/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *RepositoryList) DeepCopy() *RepositoryList {
if in == nil {
return nil
}
out := new(RepositoryList)
in.DeepCopyInto(out)
return out
} | go | func (in *RepositoryList) DeepCopy() *RepositoryList {
if in == nil {
return nil
}
out := new(RepositoryList)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"RepositoryList",
")",
"DeepCopy",
"(",
")",
"*",
"RepositoryList",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"RepositoryList",
")",
"\n",
"in",
".",
"DeepCopyInto",
"(",
"ou... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryList. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"RepositoryList",
"."
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/pkg/apis/application/v1alpha1/zz_generated.deepcopy.go#L942-L949 |
161,921 | argoproj/argo-cd | pkg/apis/application/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *ResourceAction) DeepCopy() *ResourceAction {
if in == nil {
return nil
}
out := new(ResourceAction)
in.DeepCopyInto(out)
return out
} | go | func (in *ResourceAction) DeepCopy() *ResourceAction {
if in == nil {
return nil
}
out := new(ResourceAction)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"ResourceAction",
")",
"DeepCopy",
"(",
")",
"*",
"ResourceAction",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"ResourceAction",
")",
"\n",
"in",
".",
"DeepCopyInto",
"(",
"ou... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceAction. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"ResourceAction",
"."
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/pkg/apis/application/v1alpha1/zz_generated.deepcopy.go#L963-L970 |
161,922 | argoproj/argo-cd | pkg/apis/application/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *ResourceActionDefinition) DeepCopy() *ResourceActionDefinition {
if in == nil {
return nil
}
out := new(ResourceActionDefinition)
in.DeepCopyInto(out)
return out
} | go | func (in *ResourceActionDefinition) DeepCopy() *ResourceActionDefinition {
if in == nil {
return nil
}
out := new(ResourceActionDefinition)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"ResourceActionDefinition",
")",
"DeepCopy",
"(",
")",
"*",
"ResourceActionDefinition",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"ResourceActionDefinition",
")",
"\n",
"in",
".",
... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceActionDefinition. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"ResourceActionDefinition",
"."
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/pkg/apis/application/v1alpha1/zz_generated.deepcopy.go#L979-L986 |
161,923 | argoproj/argo-cd | pkg/apis/application/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *ResourceActionParam) DeepCopy() *ResourceActionParam {
if in == nil {
return nil
}
out := new(ResourceActionParam)
in.DeepCopyInto(out)
return out
} | go | func (in *ResourceActionParam) DeepCopy() *ResourceActionParam {
if in == nil {
return nil
}
out := new(ResourceActionParam)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"ResourceActionParam",
")",
"DeepCopy",
"(",
")",
"*",
"ResourceActionParam",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"ResourceActionParam",
")",
"\n",
"in",
".",
"DeepCopyInto... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceActionParam. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"ResourceActionParam",
"."
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/pkg/apis/application/v1alpha1/zz_generated.deepcopy.go#L995-L1002 |
161,924 | argoproj/argo-cd | pkg/apis/application/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *ResourceActions) DeepCopy() *ResourceActions {
if in == nil {
return nil
}
out := new(ResourceActions)
in.DeepCopyInto(out)
return out
} | go | func (in *ResourceActions) DeepCopy() *ResourceActions {
if in == nil {
return nil
}
out := new(ResourceActions)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"ResourceActions",
")",
"DeepCopy",
"(",
")",
"*",
"ResourceActions",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"ResourceActions",
")",
"\n",
"in",
".",
"DeepCopyInto",
"(",
... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceActions. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"ResourceActions",
"."
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/pkg/apis/application/v1alpha1/zz_generated.deepcopy.go#L1016-L1023 |
161,925 | argoproj/argo-cd | pkg/apis/application/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *ResourceDiff) DeepCopy() *ResourceDiff {
if in == nil {
return nil
}
out := new(ResourceDiff)
in.DeepCopyInto(out)
return out
} | go | func (in *ResourceDiff) DeepCopy() *ResourceDiff {
if in == nil {
return nil
}
out := new(ResourceDiff)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"ResourceDiff",
")",
"DeepCopy",
"(",
")",
"*",
"ResourceDiff",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"ResourceDiff",
")",
"\n",
"in",
".",
"DeepCopyInto",
"(",
"out",
... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceDiff. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"ResourceDiff",
"."
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/pkg/apis/application/v1alpha1/zz_generated.deepcopy.go#L1032-L1039 |
161,926 | argoproj/argo-cd | pkg/apis/application/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *ResourceIgnoreDifferences) DeepCopy() *ResourceIgnoreDifferences {
if in == nil {
return nil
}
out := new(ResourceIgnoreDifferences)
in.DeepCopyInto(out)
return out
} | go | func (in *ResourceIgnoreDifferences) DeepCopy() *ResourceIgnoreDifferences {
if in == nil {
return nil
}
out := new(ResourceIgnoreDifferences)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"ResourceIgnoreDifferences",
")",
"DeepCopy",
"(",
")",
"*",
"ResourceIgnoreDifferences",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"ResourceIgnoreDifferences",
")",
"\n",
"in",
".... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceIgnoreDifferences. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"ResourceIgnoreDifferences",
"."
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/pkg/apis/application/v1alpha1/zz_generated.deepcopy.go#L1053-L1060 |
161,927 | argoproj/argo-cd | pkg/apis/application/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *ResourceNetworkingInfo) DeepCopy() *ResourceNetworkingInfo {
if in == nil {
return nil
}
out := new(ResourceNetworkingInfo)
in.DeepCopyInto(out)
return out
} | go | func (in *ResourceNetworkingInfo) DeepCopy() *ResourceNetworkingInfo {
if in == nil {
return nil
}
out := new(ResourceNetworkingInfo)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"ResourceNetworkingInfo",
")",
"DeepCopy",
"(",
")",
"*",
"ResourceNetworkingInfo",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"ResourceNetworkingInfo",
")",
"\n",
"in",
".",
"Dee... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceNetworkingInfo. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"ResourceNetworkingInfo",
"."
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/pkg/apis/application/v1alpha1/zz_generated.deepcopy.go#L1098-L1105 |
161,928 | argoproj/argo-cd | pkg/apis/application/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *ResourceNode) DeepCopy() *ResourceNode {
if in == nil {
return nil
}
out := new(ResourceNode)
in.DeepCopyInto(out)
return out
} | go | func (in *ResourceNode) DeepCopy() *ResourceNode {
if in == nil {
return nil
}
out := new(ResourceNode)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"ResourceNode",
")",
"DeepCopy",
"(",
")",
"*",
"ResourceNode",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"ResourceNode",
")",
"\n",
"in",
".",
"DeepCopyInto",
"(",
"out",
... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceNode. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"ResourceNode",
"."
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/pkg/apis/application/v1alpha1/zz_generated.deepcopy.go#L1140-L1147 |
161,929 | argoproj/argo-cd | pkg/apis/application/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *ResourceOverride) DeepCopy() *ResourceOverride {
if in == nil {
return nil
}
out := new(ResourceOverride)
in.DeepCopyInto(out)
return out
} | go | func (in *ResourceOverride) DeepCopy() *ResourceOverride {
if in == nil {
return nil
}
out := new(ResourceOverride)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"ResourceOverride",
")",
"DeepCopy",
"(",
")",
"*",
"ResourceOverride",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"ResourceOverride",
")",
"\n",
"in",
".",
"DeepCopyInto",
"(",... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceOverride. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"ResourceOverride",
"."
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/pkg/apis/application/v1alpha1/zz_generated.deepcopy.go#L1156-L1163 |
161,930 | argoproj/argo-cd | pkg/apis/application/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *ResourceRef) DeepCopy() *ResourceRef {
if in == nil {
return nil
}
out := new(ResourceRef)
in.DeepCopyInto(out)
return out
} | go | func (in *ResourceRef) DeepCopy() *ResourceRef {
if in == nil {
return nil
}
out := new(ResourceRef)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"ResourceRef",
")",
"DeepCopy",
"(",
")",
"*",
"ResourceRef",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"ResourceRef",
")",
"\n",
"in",
".",
"DeepCopyInto",
"(",
"out",
")"... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceRef. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"ResourceRef",
"."
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/pkg/apis/application/v1alpha1/zz_generated.deepcopy.go#L1172-L1179 |
161,931 | argoproj/argo-cd | pkg/apis/application/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *ResourceResult) DeepCopy() *ResourceResult {
if in == nil {
return nil
}
out := new(ResourceResult)
in.DeepCopyInto(out)
return out
} | go | func (in *ResourceResult) DeepCopy() *ResourceResult {
if in == nil {
return nil
}
out := new(ResourceResult)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"ResourceResult",
")",
"DeepCopy",
"(",
")",
"*",
"ResourceResult",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"ResourceResult",
")",
"\n",
"in",
".",
"DeepCopyInto",
"(",
"ou... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceResult. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"ResourceResult",
"."
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/pkg/apis/application/v1alpha1/zz_generated.deepcopy.go#L1188-L1195 |
161,932 | argoproj/argo-cd | pkg/apis/application/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *ResourceStatus) DeepCopy() *ResourceStatus {
if in == nil {
return nil
}
out := new(ResourceStatus)
in.DeepCopyInto(out)
return out
} | go | func (in *ResourceStatus) DeepCopy() *ResourceStatus {
if in == nil {
return nil
}
out := new(ResourceStatus)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"ResourceStatus",
")",
"DeepCopy",
"(",
")",
"*",
"ResourceStatus",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"ResourceStatus",
")",
"\n",
"in",
".",
"DeepCopyInto",
"(",
"ou... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceStatus. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"ResourceStatus",
"."
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/pkg/apis/application/v1alpha1/zz_generated.deepcopy.go#L1209-L1216 |
161,933 | argoproj/argo-cd | pkg/apis/application/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *RevisionHistory) DeepCopy() *RevisionHistory {
if in == nil {
return nil
}
out := new(RevisionHistory)
in.DeepCopyInto(out)
return out
} | go | func (in *RevisionHistory) DeepCopy() *RevisionHistory {
if in == nil {
return nil
}
out := new(RevisionHistory)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"RevisionHistory",
")",
"DeepCopy",
"(",
")",
"*",
"RevisionHistory",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"RevisionHistory",
")",
"\n",
"in",
".",
"DeepCopyInto",
"(",
... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RevisionHistory. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"RevisionHistory",
"."
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/pkg/apis/application/v1alpha1/zz_generated.deepcopy.go#L1227-L1234 |
161,934 | argoproj/argo-cd | pkg/apis/application/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *SyncOperation) DeepCopy() *SyncOperation {
if in == nil {
return nil
}
out := new(SyncOperation)
in.DeepCopyInto(out)
return out
} | go | func (in *SyncOperation) DeepCopy() *SyncOperation {
if in == nil {
return nil
}
out := new(SyncOperation)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"SyncOperation",
")",
"DeepCopy",
"(",
")",
"*",
"SyncOperation",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"SyncOperation",
")",
"\n",
"in",
".",
"DeepCopyInto",
"(",
"out",... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SyncOperation. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"SyncOperation",
"."
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/pkg/apis/application/v1alpha1/zz_generated.deepcopy.go#L1258-L1265 |
161,935 | argoproj/argo-cd | pkg/apis/application/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *SyncOperationResource) DeepCopy() *SyncOperationResource {
if in == nil {
return nil
}
out := new(SyncOperationResource)
in.DeepCopyInto(out)
return out
} | go | func (in *SyncOperationResource) DeepCopy() *SyncOperationResource {
if in == nil {
return nil
}
out := new(SyncOperationResource)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"SyncOperationResource",
")",
"DeepCopy",
"(",
")",
"*",
"SyncOperationResource",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"SyncOperationResource",
")",
"\n",
"in",
".",
"DeepCo... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SyncOperationResource. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"SyncOperationResource",
"."
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/pkg/apis/application/v1alpha1/zz_generated.deepcopy.go#L1274-L1281 |
161,936 | argoproj/argo-cd | pkg/apis/application/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *SyncOperationResult) DeepCopy() *SyncOperationResult {
if in == nil {
return nil
}
out := new(SyncOperationResult)
in.DeepCopyInto(out)
return out
} | go | func (in *SyncOperationResult) DeepCopy() *SyncOperationResult {
if in == nil {
return nil
}
out := new(SyncOperationResult)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"SyncOperationResult",
")",
"DeepCopy",
"(",
")",
"*",
"SyncOperationResult",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"SyncOperationResult",
")",
"\n",
"in",
".",
"DeepCopyInto... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SyncOperationResult. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"SyncOperationResult",
"."
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/pkg/apis/application/v1alpha1/zz_generated.deepcopy.go#L1302-L1309 |
161,937 | argoproj/argo-cd | pkg/apis/application/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *SyncPolicy) DeepCopy() *SyncPolicy {
if in == nil {
return nil
}
out := new(SyncPolicy)
in.DeepCopyInto(out)
return out
} | go | func (in *SyncPolicy) DeepCopy() *SyncPolicy {
if in == nil {
return nil
}
out := new(SyncPolicy)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"SyncPolicy",
")",
"DeepCopy",
"(",
")",
"*",
"SyncPolicy",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"SyncPolicy",
")",
"\n",
"in",
".",
"DeepCopyInto",
"(",
"out",
")",
... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SyncPolicy. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"SyncPolicy",
"."
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/pkg/apis/application/v1alpha1/zz_generated.deepcopy.go#L1323-L1330 |
161,938 | argoproj/argo-cd | pkg/apis/application/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *SyncPolicyAutomated) DeepCopy() *SyncPolicyAutomated {
if in == nil {
return nil
}
out := new(SyncPolicyAutomated)
in.DeepCopyInto(out)
return out
} | go | func (in *SyncPolicyAutomated) DeepCopy() *SyncPolicyAutomated {
if in == nil {
return nil
}
out := new(SyncPolicyAutomated)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"SyncPolicyAutomated",
")",
"DeepCopy",
"(",
")",
"*",
"SyncPolicyAutomated",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"SyncPolicyAutomated",
")",
"\n",
"in",
".",
"DeepCopyInto... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SyncPolicyAutomated. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"SyncPolicyAutomated",
"."
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/pkg/apis/application/v1alpha1/zz_generated.deepcopy.go#L1339-L1346 |
161,939 | argoproj/argo-cd | pkg/apis/application/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *SyncStatus) DeepCopy() *SyncStatus {
if in == nil {
return nil
}
out := new(SyncStatus)
in.DeepCopyInto(out)
return out
} | go | func (in *SyncStatus) DeepCopy() *SyncStatus {
if in == nil {
return nil
}
out := new(SyncStatus)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"SyncStatus",
")",
"DeepCopy",
"(",
")",
"*",
"SyncStatus",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"SyncStatus",
")",
"\n",
"in",
".",
"DeepCopyInto",
"(",
"out",
")",
... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SyncStatus. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"SyncStatus",
"."
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/pkg/apis/application/v1alpha1/zz_generated.deepcopy.go#L1356-L1363 |
161,940 | argoproj/argo-cd | pkg/apis/application/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *SyncStrategy) DeepCopy() *SyncStrategy {
if in == nil {
return nil
}
out := new(SyncStrategy)
in.DeepCopyInto(out)
return out
} | go | func (in *SyncStrategy) DeepCopy() *SyncStrategy {
if in == nil {
return nil
}
out := new(SyncStrategy)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"SyncStrategy",
")",
"DeepCopy",
"(",
")",
"*",
"SyncStrategy",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"SyncStrategy",
")",
"\n",
"in",
".",
"DeepCopyInto",
"(",
"out",
... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SyncStrategy. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"SyncStrategy",
"."
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/pkg/apis/application/v1alpha1/zz_generated.deepcopy.go#L1382-L1389 |
161,941 | argoproj/argo-cd | pkg/apis/application/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *SyncStrategyApply) DeepCopy() *SyncStrategyApply {
if in == nil {
return nil
}
out := new(SyncStrategyApply)
in.DeepCopyInto(out)
return out
} | go | func (in *SyncStrategyApply) DeepCopy() *SyncStrategyApply {
if in == nil {
return nil
}
out := new(SyncStrategyApply)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"SyncStrategyApply",
")",
"DeepCopy",
"(",
")",
"*",
"SyncStrategyApply",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"SyncStrategyApply",
")",
"\n",
"in",
".",
"DeepCopyInto",
"... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SyncStrategyApply. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"SyncStrategyApply",
"."
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/pkg/apis/application/v1alpha1/zz_generated.deepcopy.go#L1398-L1405 |
161,942 | argoproj/argo-cd | pkg/apis/application/v1alpha1/zz_generated.deepcopy.go | DeepCopy | func (in *SyncStrategyHook) DeepCopy() *SyncStrategyHook {
if in == nil {
return nil
}
out := new(SyncStrategyHook)
in.DeepCopyInto(out)
return out
} | go | func (in *SyncStrategyHook) DeepCopy() *SyncStrategyHook {
if in == nil {
return nil
}
out := new(SyncStrategyHook)
in.DeepCopyInto(out)
return out
} | [
"func",
"(",
"in",
"*",
"SyncStrategyHook",
")",
"DeepCopy",
"(",
")",
"*",
"SyncStrategyHook",
"{",
"if",
"in",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"out",
":=",
"new",
"(",
"SyncStrategyHook",
")",
"\n",
"in",
".",
"DeepCopyInto",
"(",... | // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SyncStrategyHook. | [
"DeepCopy",
"is",
"an",
"autogenerated",
"deepcopy",
"function",
"copying",
"the",
"receiver",
"creating",
"a",
"new",
"SyncStrategyHook",
"."
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/pkg/apis/application/v1alpha1/zz_generated.deepcopy.go#L1415-L1422 |
161,943 | argoproj/argo-cd | cmd/argocd/commands/context.go | NewContextCommand | func NewContextCommand(clientOpts *argocdclient.ClientOptions) *cobra.Command {
var command = &cobra.Command{
Use: "context",
Aliases: []string{"ctx"},
Short: "Switch between contexts",
Run: func(c *cobra.Command, args []string) {
if len(args) == 0 {
printArgoCDContexts(clientOpts.ConfigPath)
... | go | func NewContextCommand(clientOpts *argocdclient.ClientOptions) *cobra.Command {
var command = &cobra.Command{
Use: "context",
Aliases: []string{"ctx"},
Short: "Switch between contexts",
Run: func(c *cobra.Command, args []string) {
if len(args) == 0 {
printArgoCDContexts(clientOpts.ConfigPath)
... | [
"func",
"NewContextCommand",
"(",
"clientOpts",
"*",
"argocdclient",
".",
"ClientOptions",
")",
"*",
"cobra",
".",
"Command",
"{",
"var",
"command",
"=",
"&",
"cobra",
".",
"Command",
"{",
"Use",
":",
"\"",
"\"",
",",
"Aliases",
":",
"[",
"]",
"string",
... | // NewContextCommand returns a new instance of an `argocd ctx` command | [
"NewContextCommand",
"returns",
"a",
"new",
"instance",
"of",
"an",
"argocd",
"ctx",
"command"
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/cmd/argocd/commands/context.go#L20-L59 |
161,944 | argoproj/argo-cd | reposerver/clientset.go | NewRepoServerClientset | func NewRepoServerClientset(address string, timeoutSeconds int) Clientset {
return &clientSet{address: address, timeoutSeconds: timeoutSeconds}
} | go | func NewRepoServerClientset(address string, timeoutSeconds int) Clientset {
return &clientSet{address: address, timeoutSeconds: timeoutSeconds}
} | [
"func",
"NewRepoServerClientset",
"(",
"address",
"string",
",",
"timeoutSeconds",
"int",
")",
"Clientset",
"{",
"return",
"&",
"clientSet",
"{",
"address",
":",
"address",
",",
"timeoutSeconds",
":",
"timeoutSeconds",
"}",
"\n",
"}"
] | // NewRepoServerClientset creates new instance of repo server Clientset | [
"NewRepoServerClientset",
"creates",
"new",
"instance",
"of",
"repo",
"server",
"Clientset"
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/reposerver/clientset.go#L48-L50 |
161,945 | argoproj/argo-cd | util/project/util.go | GetRoleByName | func GetRoleByName(proj *v1alpha1.AppProject, name string) (*v1alpha1.ProjectRole, int, error) {
for i, role := range proj.Spec.Roles {
if name == role.Name {
return &role, i, nil
}
}
return nil, -1, fmt.Errorf("role '%s' does not exist in project '%s'", name, proj.Name)
} | go | func GetRoleByName(proj *v1alpha1.AppProject, name string) (*v1alpha1.ProjectRole, int, error) {
for i, role := range proj.Spec.Roles {
if name == role.Name {
return &role, i, nil
}
}
return nil, -1, fmt.Errorf("role '%s' does not exist in project '%s'", name, proj.Name)
} | [
"func",
"GetRoleByName",
"(",
"proj",
"*",
"v1alpha1",
".",
"AppProject",
",",
"name",
"string",
")",
"(",
"*",
"v1alpha1",
".",
"ProjectRole",
",",
"int",
",",
"error",
")",
"{",
"for",
"i",
",",
"role",
":=",
"range",
"proj",
".",
"Spec",
".",
"Rol... | // GetRoleByName returns the role in a project by the name with its index | [
"GetRoleByName",
"returns",
"the",
"role",
"in",
"a",
"project",
"by",
"the",
"name",
"with",
"its",
"index"
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/util/project/util.go#L16-L23 |
161,946 | argoproj/argo-cd | util/project/util.go | GetJWTToken | func GetJWTToken(proj *v1alpha1.AppProject, roleName string, issuedAt int64) (*v1alpha1.JWTToken, int, error) {
role, _, err := GetRoleByName(proj, roleName)
if err != nil {
return nil, -1, err
}
for i, token := range role.JWTTokens {
if issuedAt == token.IssuedAt {
return &token, i, nil
}
}
return nil, ... | go | func GetJWTToken(proj *v1alpha1.AppProject, roleName string, issuedAt int64) (*v1alpha1.JWTToken, int, error) {
role, _, err := GetRoleByName(proj, roleName)
if err != nil {
return nil, -1, err
}
for i, token := range role.JWTTokens {
if issuedAt == token.IssuedAt {
return &token, i, nil
}
}
return nil, ... | [
"func",
"GetJWTToken",
"(",
"proj",
"*",
"v1alpha1",
".",
"AppProject",
",",
"roleName",
"string",
",",
"issuedAt",
"int64",
")",
"(",
"*",
"v1alpha1",
".",
"JWTToken",
",",
"int",
",",
"error",
")",
"{",
"role",
",",
"_",
",",
"err",
":=",
"GetRoleByN... | // GetJWTToken looks up the index of a JWTToken in a project by the issue at time | [
"GetJWTToken",
"looks",
"up",
"the",
"index",
"of",
"a",
"JWTToken",
"in",
"a",
"project",
"by",
"the",
"issue",
"at",
"time"
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/util/project/util.go#L26-L37 |
161,947 | argoproj/argo-cd | util/project/util.go | validatePolicySyntax | func validatePolicySyntax(p *v1alpha1.AppProject) error {
err := rbac.ValidatePolicy(p.ProjectPoliciesString())
if err != nil {
return status.Errorf(codes.InvalidArgument, "policy syntax error: %s", err.Error())
}
return nil
} | go | func validatePolicySyntax(p *v1alpha1.AppProject) error {
err := rbac.ValidatePolicy(p.ProjectPoliciesString())
if err != nil {
return status.Errorf(codes.InvalidArgument, "policy syntax error: %s", err.Error())
}
return nil
} | [
"func",
"validatePolicySyntax",
"(",
"p",
"*",
"v1alpha1",
".",
"AppProject",
")",
"error",
"{",
"err",
":=",
"rbac",
".",
"ValidatePolicy",
"(",
"p",
".",
"ProjectPoliciesString",
"(",
")",
")",
"\n",
"if",
"err",
"!=",
"nil",
"{",
"return",
"status",
"... | // validatePolicySyntax verifies policy syntax is accepted by casbin | [
"validatePolicySyntax",
"verifies",
"policy",
"syntax",
"is",
"accepted",
"by",
"casbin"
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/util/project/util.go#L163-L169 |
161,948 | argoproj/argo-cd | util/project/util.go | AddGroupToRole | func AddGroupToRole(p *v1alpha1.AppProject, roleName, group string) (bool, error) {
role, roleIndex, err := GetRoleByName(p, roleName)
if err != nil {
return false, err
}
for _, roleGroup := range role.Groups {
if group == roleGroup {
return false, nil
}
}
role.Groups = append(role.Groups, group)
p.Spec... | go | func AddGroupToRole(p *v1alpha1.AppProject, roleName, group string) (bool, error) {
role, roleIndex, err := GetRoleByName(p, roleName)
if err != nil {
return false, err
}
for _, roleGroup := range role.Groups {
if group == roleGroup {
return false, nil
}
}
role.Groups = append(role.Groups, group)
p.Spec... | [
"func",
"AddGroupToRole",
"(",
"p",
"*",
"v1alpha1",
".",
"AppProject",
",",
"roleName",
",",
"group",
"string",
")",
"(",
"bool",
",",
"error",
")",
"{",
"role",
",",
"roleIndex",
",",
"err",
":=",
"GetRoleByName",
"(",
"p",
",",
"roleName",
")",
"\n"... | // AddGroupToRole adds an OIDC group to a role | [
"AddGroupToRole",
"adds",
"an",
"OIDC",
"group",
"to",
"a",
"role"
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/util/project/util.go#L172-L185 |
161,949 | argoproj/argo-cd | util/project/util.go | NormalizePolicies | func NormalizePolicies(p *v1alpha1.AppProject) {
for i, role := range p.Spec.Roles {
var normalizedPolicies []string
for _, policy := range role.Policies {
normalizedPolicies = append(normalizedPolicies, normalizePolicy(policy))
}
p.Spec.Roles[i].Policies = normalizedPolicies
}
} | go | func NormalizePolicies(p *v1alpha1.AppProject) {
for i, role := range p.Spec.Roles {
var normalizedPolicies []string
for _, policy := range role.Policies {
normalizedPolicies = append(normalizedPolicies, normalizePolicy(policy))
}
p.Spec.Roles[i].Policies = normalizedPolicies
}
} | [
"func",
"NormalizePolicies",
"(",
"p",
"*",
"v1alpha1",
".",
"AppProject",
")",
"{",
"for",
"i",
",",
"role",
":=",
"range",
"p",
".",
"Spec",
".",
"Roles",
"{",
"var",
"normalizedPolicies",
"[",
"]",
"string",
"\n",
"for",
"_",
",",
"policy",
":=",
... | // NormalizePolicies normalizes the policies in the project | [
"NormalizePolicies",
"normalizes",
"the",
"policies",
"in",
"the",
"project"
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/util/project/util.go#L204-L212 |
161,950 | argoproj/argo-cd | util/cli/cli.go | ReadAndConfirmPassword | func ReadAndConfirmPassword() (string, error) {
for {
fmt.Print("*** Enter new password: ")
password, err := terminal.ReadPassword(syscall.Stdin)
if err != nil {
return "", err
}
fmt.Print("\n")
fmt.Print("*** Confirm new password: ")
confirmPassword, err := terminal.ReadPassword(syscall.Stdin)
if e... | go | func ReadAndConfirmPassword() (string, error) {
for {
fmt.Print("*** Enter new password: ")
password, err := terminal.ReadPassword(syscall.Stdin)
if err != nil {
return "", err
}
fmt.Print("\n")
fmt.Print("*** Confirm new password: ")
confirmPassword, err := terminal.ReadPassword(syscall.Stdin)
if e... | [
"func",
"ReadAndConfirmPassword",
"(",
")",
"(",
"string",
",",
"error",
")",
"{",
"for",
"{",
"fmt",
".",
"Print",
"(",
"\"",
"\"",
")",
"\n",
"password",
",",
"err",
":=",
"terminal",
".",
"ReadPassword",
"(",
"syscall",
".",
"Stdin",
")",
"\n",
"i... | // ReadAndConfirmPassword is a helper to read and confirm a password from stdin | [
"ReadAndConfirmPassword",
"is",
"a",
"helper",
"to",
"read",
"and",
"confirm",
"a",
"password",
"from",
"stdin"
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/util/cli/cli.go#L119-L138 |
161,951 | argoproj/argo-cd | util/cli/cli.go | SetLogLevel | func SetLogLevel(logLevel string) {
level, err := log.ParseLevel(logLevel)
errors.CheckError(err)
log.SetLevel(level)
if os.Getenv("FORCE_LOG_COLORS") == "1" {
log.SetFormatter(&log.TextFormatter{ForceColors: true})
}
} | go | func SetLogLevel(logLevel string) {
level, err := log.ParseLevel(logLevel)
errors.CheckError(err)
log.SetLevel(level)
if os.Getenv("FORCE_LOG_COLORS") == "1" {
log.SetFormatter(&log.TextFormatter{ForceColors: true})
}
} | [
"func",
"SetLogLevel",
"(",
"logLevel",
"string",
")",
"{",
"level",
",",
"err",
":=",
"log",
".",
"ParseLevel",
"(",
"logLevel",
")",
"\n",
"errors",
".",
"CheckError",
"(",
"err",
")",
"\n",
"log",
".",
"SetLevel",
"(",
"level",
")",
"\n",
"if",
"o... | // SetLogLevel parses and sets a logrus log level | [
"SetLogLevel",
"parses",
"and",
"sets",
"a",
"logrus",
"log",
"level"
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/util/cli/cli.go#L141-L148 |
161,952 | argoproj/argo-cd | util/cli/cli.go | SetGLogLevel | func SetGLogLevel(glogLevel int) {
_ = flag.CommandLine.Parse([]string{})
_ = flag.Lookup("logtostderr").Value.Set("true")
_ = flag.Lookup("v").Value.Set(strconv.Itoa(glogLevel))
} | go | func SetGLogLevel(glogLevel int) {
_ = flag.CommandLine.Parse([]string{})
_ = flag.Lookup("logtostderr").Value.Set("true")
_ = flag.Lookup("v").Value.Set(strconv.Itoa(glogLevel))
} | [
"func",
"SetGLogLevel",
"(",
"glogLevel",
"int",
")",
"{",
"_",
"=",
"flag",
".",
"CommandLine",
".",
"Parse",
"(",
"[",
"]",
"string",
"{",
"}",
")",
"\n",
"_",
"=",
"flag",
".",
"Lookup",
"(",
"\"",
"\"",
")",
".",
"Value",
".",
"Set",
"(",
"... | // SetGLogLevel set the glog level for the k8s go-client | [
"SetGLogLevel",
"set",
"the",
"glog",
"level",
"for",
"the",
"k8s",
"go",
"-",
"client"
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/util/cli/cli.go#L151-L155 |
161,953 | argoproj/argo-cd | server/repository/repository.pb.gw.go | RegisterRepositoryServiceHandler | func RegisterRepositoryServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error {
return RegisterRepositoryServiceHandlerClient(ctx, mux, NewRepositoryServiceClient(conn))
} | go | func RegisterRepositoryServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error {
return RegisterRepositoryServiceHandlerClient(ctx, mux, NewRepositoryServiceClient(conn))
} | [
"func",
"RegisterRepositoryServiceHandler",
"(",
"ctx",
"context",
".",
"Context",
",",
"mux",
"*",
"runtime",
".",
"ServeMux",
",",
"conn",
"*",
"grpc",
".",
"ClientConn",
")",
"error",
"{",
"return",
"RegisterRepositoryServiceHandlerClient",
"(",
"ctx",
",",
"... | // RegisterRepositoryServiceHandler registers the http handlers for service RepositoryService to "mux".
// The handlers forward requests to the grpc endpoint over "conn". | [
"RegisterRepositoryServiceHandler",
"registers",
"the",
"http",
"handlers",
"for",
"service",
"RepositoryService",
"to",
"mux",
".",
"The",
"handlers",
"forward",
"requests",
"to",
"the",
"grpc",
"endpoint",
"over",
"conn",
"."
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/server/repository/repository.pb.gw.go#L235-L237 |
161,954 | argoproj/argo-cd | server/session/session.pb.gw.go | RegisterSessionServiceHandler | func RegisterSessionServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error {
return RegisterSessionServiceHandlerClient(ctx, mux, NewSessionServiceClient(conn))
} | go | func RegisterSessionServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error {
return RegisterSessionServiceHandlerClient(ctx, mux, NewSessionServiceClient(conn))
} | [
"func",
"RegisterSessionServiceHandler",
"(",
"ctx",
"context",
".",
"Context",
",",
"mux",
"*",
"runtime",
".",
"ServeMux",
",",
"conn",
"*",
"grpc",
".",
"ClientConn",
")",
"error",
"{",
"return",
"RegisterSessionServiceHandlerClient",
"(",
"ctx",
",",
"mux",
... | // RegisterSessionServiceHandler registers the http handlers for service SessionService to "mux".
// The handlers forward requests to the grpc endpoint over "conn". | [
"RegisterSessionServiceHandler",
"registers",
"the",
"http",
"handlers",
"for",
"service",
"SessionService",
"to",
"mux",
".",
"The",
"handlers",
"forward",
"requests",
"to",
"the",
"grpc",
"endpoint",
"over",
"conn",
"."
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/server/session/session.pb.gw.go#L80-L82 |
161,955 | argoproj/argo-cd | util/cache/cache.go | AddCacheFlagsToCmd | func AddCacheFlagsToCmd(cmd *cobra.Command) func() (*Cache, error) {
redisAddress := ""
sentinelAddresses := make([]string, 0)
sentinelMaster := ""
redisDB := 0
cmd.Flags().StringVar(&redisAddress, "redis", "", "Redis server hostname and port (e.g. argocd-redis:6379). ")
cmd.Flags().IntVar(&redisDB, "redisdb", 0... | go | func AddCacheFlagsToCmd(cmd *cobra.Command) func() (*Cache, error) {
redisAddress := ""
sentinelAddresses := make([]string, 0)
sentinelMaster := ""
redisDB := 0
cmd.Flags().StringVar(&redisAddress, "redis", "", "Redis server hostname and port (e.g. argocd-redis:6379). ")
cmd.Flags().IntVar(&redisDB, "redisdb", 0... | [
"func",
"AddCacheFlagsToCmd",
"(",
"cmd",
"*",
"cobra",
".",
"Command",
")",
"func",
"(",
")",
"(",
"*",
"Cache",
",",
"error",
")",
"{",
"redisAddress",
":=",
"\"",
"\"",
"\n",
"sentinelAddresses",
":=",
"make",
"(",
"[",
"]",
"string",
",",
"0",
")... | // AddCacheFlagsToCmd adds flags which control caching to the specified command | [
"AddCacheFlagsToCmd",
"adds",
"flags",
"which",
"control",
"caching",
"to",
"the",
"specified",
"command"
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/util/cache/cache.go#L40-L72 |
161,956 | argoproj/argo-cd | server/session/session.go | Delete | func (s *Server) Delete(ctx context.Context, q *SessionDeleteRequest) (*SessionResponse, error) {
return &SessionResponse{Token: ""}, nil
} | go | func (s *Server) Delete(ctx context.Context, q *SessionDeleteRequest) (*SessionResponse, error) {
return &SessionResponse{Token: ""}, nil
} | [
"func",
"(",
"s",
"*",
"Server",
")",
"Delete",
"(",
"ctx",
"context",
".",
"Context",
",",
"q",
"*",
"SessionDeleteRequest",
")",
"(",
"*",
"SessionResponse",
",",
"error",
")",
"{",
"return",
"&",
"SessionResponse",
"{",
"Token",
":",
"\"",
"\"",
"}"... | // Delete an authentication cookie from the client. This makes sense only for the Web client. | [
"Delete",
"an",
"authentication",
"cookie",
"from",
"the",
"client",
".",
"This",
"makes",
"sense",
"only",
"for",
"the",
"Web",
"client",
"."
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/server/session/session.go#L45-L47 |
161,957 | argoproj/argo-cd | server/cluster/cluster.pb.gw.go | RegisterClusterServiceHandler | func RegisterClusterServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error {
return RegisterClusterServiceHandlerClient(ctx, mux, NewClusterServiceClient(conn))
} | go | func RegisterClusterServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error {
return RegisterClusterServiceHandlerClient(ctx, mux, NewClusterServiceClient(conn))
} | [
"func",
"RegisterClusterServiceHandler",
"(",
"ctx",
"context",
".",
"Context",
",",
"mux",
"*",
"runtime",
".",
"ServeMux",
",",
"conn",
"*",
"grpc",
".",
"ClientConn",
")",
"error",
"{",
"return",
"RegisterClusterServiceHandlerClient",
"(",
"ctx",
",",
"mux",
... | // RegisterClusterServiceHandler registers the http handlers for service ClusterService to "mux".
// The handlers forward requests to the grpc endpoint over "conn". | [
"RegisterClusterServiceHandler",
"registers",
"the",
"http",
"handlers",
"for",
"service",
"ClusterService",
"to",
"mux",
".",
"The",
"handlers",
"forward",
"requests",
"to",
"the",
"grpc",
"endpoint",
"over",
"conn",
"."
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/server/cluster/cluster.pb.gw.go#L194-L196 |
161,958 | argoproj/argo-cd | pkg/client/listers/application/v1alpha1/appproject.go | List | func (s *appProjectLister) List(selector labels.Selector) (ret []*v1alpha1.AppProject, err error) {
err = cache.ListAll(s.indexer, selector, func(m interface{}) {
ret = append(ret, m.(*v1alpha1.AppProject))
})
return ret, err
} | go | func (s *appProjectLister) List(selector labels.Selector) (ret []*v1alpha1.AppProject, err error) {
err = cache.ListAll(s.indexer, selector, func(m interface{}) {
ret = append(ret, m.(*v1alpha1.AppProject))
})
return ret, err
} | [
"func",
"(",
"s",
"*",
"appProjectLister",
")",
"List",
"(",
"selector",
"labels",
".",
"Selector",
")",
"(",
"ret",
"[",
"]",
"*",
"v1alpha1",
".",
"AppProject",
",",
"err",
"error",
")",
"{",
"err",
"=",
"cache",
".",
"ListAll",
"(",
"s",
".",
"i... | // List lists all AppProjects in the indexer. | [
"List",
"lists",
"all",
"AppProjects",
"in",
"the",
"indexer",
"."
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/pkg/client/listers/application/v1alpha1/appproject.go#L32-L37 |
161,959 | argoproj/argo-cd | pkg/client/listers/application/v1alpha1/appproject.go | AppProjects | func (s *appProjectLister) AppProjects(namespace string) AppProjectNamespaceLister {
return appProjectNamespaceLister{indexer: s.indexer, namespace: namespace}
} | go | func (s *appProjectLister) AppProjects(namespace string) AppProjectNamespaceLister {
return appProjectNamespaceLister{indexer: s.indexer, namespace: namespace}
} | [
"func",
"(",
"s",
"*",
"appProjectLister",
")",
"AppProjects",
"(",
"namespace",
"string",
")",
"AppProjectNamespaceLister",
"{",
"return",
"appProjectNamespaceLister",
"{",
"indexer",
":",
"s",
".",
"indexer",
",",
"namespace",
":",
"namespace",
"}",
"\n",
"}"
... | // AppProjects returns an object that can list and get AppProjects. | [
"AppProjects",
"returns",
"an",
"object",
"that",
"can",
"list",
"and",
"get",
"AppProjects",
"."
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/pkg/client/listers/application/v1alpha1/appproject.go#L40-L42 |
161,960 | argoproj/argo-cd | pkg/client/listers/application/v1alpha1/appproject.go | List | func (s appProjectNamespaceLister) List(selector labels.Selector) (ret []*v1alpha1.AppProject, err error) {
err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) {
ret = append(ret, m.(*v1alpha1.AppProject))
})
return ret, err
} | go | func (s appProjectNamespaceLister) List(selector labels.Selector) (ret []*v1alpha1.AppProject, err error) {
err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) {
ret = append(ret, m.(*v1alpha1.AppProject))
})
return ret, err
} | [
"func",
"(",
"s",
"appProjectNamespaceLister",
")",
"List",
"(",
"selector",
"labels",
".",
"Selector",
")",
"(",
"ret",
"[",
"]",
"*",
"v1alpha1",
".",
"AppProject",
",",
"err",
"error",
")",
"{",
"err",
"=",
"cache",
".",
"ListAllByNamespace",
"(",
"s"... | // List lists all AppProjects in the indexer for a given namespace. | [
"List",
"lists",
"all",
"AppProjects",
"in",
"the",
"indexer",
"for",
"a",
"given",
"namespace",
"."
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/pkg/client/listers/application/v1alpha1/appproject.go#L61-L66 |
161,961 | argoproj/argo-cd | util/diff/diff.go | TwoWayDiff | func TwoWayDiff(config, live *unstructured.Unstructured) *DiffResult {
var configObj, liveObj map[string]interface{}
if config != nil {
config = removeNamespaceAnnotation(config)
configObj = config.Object
}
if live != nil {
liveObj = jsonutil.RemoveMapFields(configObj, live.Object)
}
gjDiff := gojsondiff.Ne... | go | func TwoWayDiff(config, live *unstructured.Unstructured) *DiffResult {
var configObj, liveObj map[string]interface{}
if config != nil {
config = removeNamespaceAnnotation(config)
configObj = config.Object
}
if live != nil {
liveObj = jsonutil.RemoveMapFields(configObj, live.Object)
}
gjDiff := gojsondiff.Ne... | [
"func",
"TwoWayDiff",
"(",
"config",
",",
"live",
"*",
"unstructured",
".",
"Unstructured",
")",
"*",
"DiffResult",
"{",
"var",
"configObj",
",",
"liveObj",
"map",
"[",
"string",
"]",
"interface",
"{",
"}",
"\n",
"if",
"config",
"!=",
"nil",
"{",
"config... | // TwoWayDiff performs a normal two-way diff between two unstructured objects. Ignores extra fields
// in the live object.
// Inputs are assumed to be stripped of type information | [
"TwoWayDiff",
"performs",
"a",
"normal",
"two",
"-",
"way",
"diff",
"between",
"two",
"unstructured",
"objects",
".",
"Ignores",
"extra",
"fields",
"in",
"the",
"live",
"object",
".",
"Inputs",
"are",
"assumed",
"to",
"be",
"stripped",
"of",
"type",
"informa... | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/util/diff/diff.go#L61-L76 |
161,962 | argoproj/argo-cd | util/diff/diff.go | ThreeWayDiff | func ThreeWayDiff(orig, config, live *unstructured.Unstructured) (*DiffResult, error) {
orig = removeNamespaceAnnotation(orig)
config = removeNamespaceAnnotation(config)
// Remove defaulted fields from the live object.
// This subtracts any extra fields in the live object which are not present in last-applied-confi... | go | func ThreeWayDiff(orig, config, live *unstructured.Unstructured) (*DiffResult, error) {
orig = removeNamespaceAnnotation(orig)
config = removeNamespaceAnnotation(config)
// Remove defaulted fields from the live object.
// This subtracts any extra fields in the live object which are not present in last-applied-confi... | [
"func",
"ThreeWayDiff",
"(",
"orig",
",",
"config",
",",
"live",
"*",
"unstructured",
".",
"Unstructured",
")",
"(",
"*",
"DiffResult",
",",
"error",
")",
"{",
"orig",
"=",
"removeNamespaceAnnotation",
"(",
"orig",
")",
"\n",
"config",
"=",
"removeNamespaceA... | // ThreeWayDiff performs a diff with the understanding of how to incorporate the
// last-applied-configuration annotation in the diff.
// Inputs are assumed to be stripped of type information | [
"ThreeWayDiff",
"performs",
"a",
"diff",
"with",
"the",
"understanding",
"of",
"how",
"to",
"incorporate",
"the",
"last",
"-",
"applied",
"-",
"configuration",
"annotation",
"in",
"the",
"diff",
".",
"Inputs",
"are",
"assumed",
"to",
"be",
"stripped",
"of",
... | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/util/diff/diff.go#L81-L121 |
161,963 | argoproj/argo-cd | util/diff/diff.go | DiffArray | func DiffArray(configArray, liveArray []*unstructured.Unstructured, normalizer Normalizer) (*DiffResultList, error) {
numItems := len(configArray)
if len(liveArray) != numItems {
return nil, fmt.Errorf("left and right arrays have mismatched lengths")
}
diffResultList := DiffResultList{
Diffs: make([]DiffResult... | go | func DiffArray(configArray, liveArray []*unstructured.Unstructured, normalizer Normalizer) (*DiffResultList, error) {
numItems := len(configArray)
if len(liveArray) != numItems {
return nil, fmt.Errorf("left and right arrays have mismatched lengths")
}
diffResultList := DiffResultList{
Diffs: make([]DiffResult... | [
"func",
"DiffArray",
"(",
"configArray",
",",
"liveArray",
"[",
"]",
"*",
"unstructured",
".",
"Unstructured",
",",
"normalizer",
"Normalizer",
")",
"(",
"*",
"DiffResultList",
",",
"error",
")",
"{",
"numItems",
":=",
"len",
"(",
"configArray",
")",
"\n",
... | // DiffArray performs a diff on a list of unstructured objects. Objects are expected to match
// environments | [
"DiffArray",
"performs",
"a",
"diff",
"on",
"a",
"list",
"of",
"unstructured",
"objects",
".",
"Objects",
"are",
"expected",
"to",
"match",
"environments"
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/util/diff/diff.go#L214-L233 |
161,964 | argoproj/argo-cd | util/diff/diff.go | ASCIIFormat | func (d *DiffResult) ASCIIFormat(left *unstructured.Unstructured, formatOpts formatter.AsciiFormatterConfig) (string, error) {
if !d.Diff.Modified() {
return "", nil
}
if left == nil {
return "", errors.New("Supplied nil left object")
}
asciiFmt := formatter.NewAsciiFormatter(left.Object, formatOpts)
return a... | go | func (d *DiffResult) ASCIIFormat(left *unstructured.Unstructured, formatOpts formatter.AsciiFormatterConfig) (string, error) {
if !d.Diff.Modified() {
return "", nil
}
if left == nil {
return "", errors.New("Supplied nil left object")
}
asciiFmt := formatter.NewAsciiFormatter(left.Object, formatOpts)
return a... | [
"func",
"(",
"d",
"*",
"DiffResult",
")",
"ASCIIFormat",
"(",
"left",
"*",
"unstructured",
".",
"Unstructured",
",",
"formatOpts",
"formatter",
".",
"AsciiFormatterConfig",
")",
"(",
"string",
",",
"error",
")",
"{",
"if",
"!",
"d",
".",
"Diff",
".",
"Mo... | // ASCIIFormat returns the ASCII format of the diff | [
"ASCIIFormat",
"returns",
"the",
"ASCII",
"format",
"of",
"the",
"diff"
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/util/diff/diff.go#L236-L245 |
161,965 | argoproj/argo-cd | util/diff/diff.go | NormalizeSecret | func NormalizeSecret(un *unstructured.Unstructured) {
if un == nil {
return
}
gvk := un.GroupVersionKind()
if gvk.Group != "" || gvk.Kind != "Secret" {
return
}
var secret corev1.Secret
err := runtime.DefaultUnstructuredConverter.FromUnstructured(un.Object, &secret)
if err != nil {
return
}
// We normal... | go | func NormalizeSecret(un *unstructured.Unstructured) {
if un == nil {
return
}
gvk := un.GroupVersionKind()
if gvk.Group != "" || gvk.Kind != "Secret" {
return
}
var secret corev1.Secret
err := runtime.DefaultUnstructuredConverter.FromUnstructured(un.Object, &secret)
if err != nil {
return
}
// We normal... | [
"func",
"NormalizeSecret",
"(",
"un",
"*",
"unstructured",
".",
"Unstructured",
")",
"{",
"if",
"un",
"==",
"nil",
"{",
"return",
"\n",
"}",
"\n",
"gvk",
":=",
"un",
".",
"GroupVersionKind",
"(",
")",
"\n",
"if",
"gvk",
".",
"Group",
"!=",
"\"",
"\""... | // NormalizeSecret mutates the supplied object and encodes stringData to data, and converts nils to
// empty strings. If the object is not a secret, or is an invalid secret, then returns the same object. | [
"NormalizeSecret",
"mutates",
"the",
"supplied",
"object",
"and",
"encodes",
"stringData",
"to",
"data",
"and",
"converts",
"nils",
"to",
"empty",
"strings",
".",
"If",
"the",
"object",
"is",
"not",
"a",
"secret",
"or",
"is",
"an",
"invalid",
"secret",
"then... | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/util/diff/diff.go#L272-L312 |
161,966 | argoproj/argo-cd | util/diff/diff.go | JSONFormat | func (d *DiffResult) JSONFormat() (string, error) {
if !d.Diff.Modified() {
return "", nil
}
jsonFmt := formatter.NewDeltaFormatter()
return jsonFmt.Format(d.Diff)
} | go | func (d *DiffResult) JSONFormat() (string, error) {
if !d.Diff.Modified() {
return "", nil
}
jsonFmt := formatter.NewDeltaFormatter()
return jsonFmt.Format(d.Diff)
} | [
"func",
"(",
"d",
"*",
"DiffResult",
")",
"JSONFormat",
"(",
")",
"(",
"string",
",",
"error",
")",
"{",
"if",
"!",
"d",
".",
"Diff",
".",
"Modified",
"(",
")",
"{",
"return",
"\"",
"\"",
",",
"nil",
"\n",
"}",
"\n",
"jsonFmt",
":=",
"formatter",... | // JSONFormat returns the diff as a JSON string | [
"JSONFormat",
"returns",
"the",
"diff",
"as",
"a",
"JSON",
"string"
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/util/diff/diff.go#L337-L343 |
161,967 | argoproj/argo-cd | util/diff/diff.go | HideSecretData | func HideSecretData(target *unstructured.Unstructured, live *unstructured.Unstructured) (*unstructured.Unstructured, *unstructured.Unstructured, error) {
var orig *unstructured.Unstructured
if live != nil {
orig = GetLastAppliedConfigAnnotation(live)
live = live.DeepCopy()
}
if target != nil {
target = target... | go | func HideSecretData(target *unstructured.Unstructured, live *unstructured.Unstructured) (*unstructured.Unstructured, *unstructured.Unstructured, error) {
var orig *unstructured.Unstructured
if live != nil {
orig = GetLastAppliedConfigAnnotation(live)
live = live.DeepCopy()
}
if target != nil {
target = target... | [
"func",
"HideSecretData",
"(",
"target",
"*",
"unstructured",
".",
"Unstructured",
",",
"live",
"*",
"unstructured",
".",
"Unstructured",
")",
"(",
"*",
"unstructured",
".",
"Unstructured",
",",
"*",
"unstructured",
".",
"Unstructured",
",",
"error",
")",
"{",... | // HideSecretData replaces secret data values in specified target, live secrets and in last applied configuration of live secret with stars. Also preserves differences between
// target, live and last applied config values. E.g. if all three are equal the values would be replaced with same number of stars. If all the a... | [
"HideSecretData",
"replaces",
"secret",
"data",
"values",
"in",
"specified",
"target",
"live",
"secrets",
"and",
"in",
"last",
"applied",
"configuration",
"of",
"live",
"secret",
"with",
"stars",
".",
"Also",
"preserves",
"differences",
"between",
"target",
"live"... | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/util/diff/diff.go#L365-L434 |
161,968 | argoproj/argo-cd | util/health/health.go | SetApplicationHealth | func SetApplicationHealth(resStatuses []appv1.ResourceStatus, liveObjs []*unstructured.Unstructured, resourceOverrides map[string]appv1.ResourceOverride, filter func(obj *unstructured.Unstructured) bool) (*appv1.HealthStatus, error) {
var savedErr error
appHealth := appv1.HealthStatus{Status: appv1.HealthStatusHealth... | go | func SetApplicationHealth(resStatuses []appv1.ResourceStatus, liveObjs []*unstructured.Unstructured, resourceOverrides map[string]appv1.ResourceOverride, filter func(obj *unstructured.Unstructured) bool) (*appv1.HealthStatus, error) {
var savedErr error
appHealth := appv1.HealthStatus{Status: appv1.HealthStatusHealth... | [
"func",
"SetApplicationHealth",
"(",
"resStatuses",
"[",
"]",
"appv1",
".",
"ResourceStatus",
",",
"liveObjs",
"[",
"]",
"*",
"unstructured",
".",
"Unstructured",
",",
"resourceOverrides",
"map",
"[",
"string",
"]",
"appv1",
".",
"ResourceOverride",
",",
"filter... | // SetApplicationHealth updates the health statuses of all resources performed in the comparison | [
"SetApplicationHealth",
"updates",
"the",
"health",
"statuses",
"of",
"all",
"resources",
"performed",
"in",
"the",
"comparison"
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/util/health/health.go#L24-L50 |
161,969 | argoproj/argo-cd | util/health/health.go | GetResourceHealth | func GetResourceHealth(obj *unstructured.Unstructured, resourceOverrides map[string]appv1.ResourceOverride) (*appv1.HealthStatus, error) {
if obj.GetDeletionTimestamp() != nil {
return &appv1.HealthStatus{
Status: appv1.HealthStatusProgressing,
Message: "Pending deletion",
}, nil
}
health, err := getRes... | go | func GetResourceHealth(obj *unstructured.Unstructured, resourceOverrides map[string]appv1.ResourceOverride) (*appv1.HealthStatus, error) {
if obj.GetDeletionTimestamp() != nil {
return &appv1.HealthStatus{
Status: appv1.HealthStatusProgressing,
Message: "Pending deletion",
}, nil
}
health, err := getRes... | [
"func",
"GetResourceHealth",
"(",
"obj",
"*",
"unstructured",
".",
"Unstructured",
",",
"resourceOverrides",
"map",
"[",
"string",
"]",
"appv1",
".",
"ResourceOverride",
")",
"(",
"*",
"appv1",
".",
"HealthStatus",
",",
"error",
")",
"{",
"if",
"obj",
".",
... | // GetResourceHealth returns the health of a k8s resource | [
"GetResourceHealth",
"returns",
"the",
"health",
"of",
"a",
"k8s",
"resource"
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/util/health/health.go#L53-L116 |
161,970 | argoproj/argo-cd | util/health/health.go | IsWorse | func IsWorse(current, new appv1.HealthStatusCode) bool {
currentIndex := 0
newIndex := 0
for i, code := range healthOrder {
if current == code {
currentIndex = i
}
if new == code {
newIndex = i
}
}
return newIndex > currentIndex
} | go | func IsWorse(current, new appv1.HealthStatusCode) bool {
currentIndex := 0
newIndex := 0
for i, code := range healthOrder {
if current == code {
currentIndex = i
}
if new == code {
newIndex = i
}
}
return newIndex > currentIndex
} | [
"func",
"IsWorse",
"(",
"current",
",",
"new",
"appv1",
".",
"HealthStatusCode",
")",
"bool",
"{",
"currentIndex",
":=",
"0",
"\n",
"newIndex",
":=",
"0",
"\n",
"for",
"i",
",",
"code",
":=",
"range",
"healthOrder",
"{",
"if",
"current",
"==",
"code",
... | // IsWorse returns whether or not the new health status code is a worser condition than the current | [
"IsWorse",
"returns",
"whether",
"or",
"not",
"the",
"new",
"health",
"status",
"code",
"is",
"a",
"worser",
"condition",
"than",
"the",
"current"
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/util/health/health.go#L129-L141 |
161,971 | argoproj/argo-cd | util/healthz/healthz.go | ServeHealthCheck | func ServeHealthCheck(mux *http.ServeMux, f func() error) {
mux.HandleFunc("/healthz", func(w http.ResponseWriter, r *http.Request) {
if err := f(); err != nil {
w.WriteHeader(http.StatusServiceUnavailable)
log.Errorln(w, err)
} else {
fmt.Fprintln(w, "ok")
}
})
} | go | func ServeHealthCheck(mux *http.ServeMux, f func() error) {
mux.HandleFunc("/healthz", func(w http.ResponseWriter, r *http.Request) {
if err := f(); err != nil {
w.WriteHeader(http.StatusServiceUnavailable)
log.Errorln(w, err)
} else {
fmt.Fprintln(w, "ok")
}
})
} | [
"func",
"ServeHealthCheck",
"(",
"mux",
"*",
"http",
".",
"ServeMux",
",",
"f",
"func",
"(",
")",
"error",
")",
"{",
"mux",
".",
"HandleFunc",
"(",
"\"",
"\"",
",",
"func",
"(",
"w",
"http",
".",
"ResponseWriter",
",",
"r",
"*",
"http",
".",
"Reque... | // ServeHealthCheck serves the health check endpoint.
// ServeHealthCheck relies on the provided function to return an error if unhealthy and nil otherwise. | [
"ServeHealthCheck",
"serves",
"the",
"health",
"check",
"endpoint",
".",
"ServeHealthCheck",
"relies",
"on",
"the",
"provided",
"function",
"to",
"return",
"an",
"error",
"if",
"unhealthy",
"and",
"nil",
"otherwise",
"."
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/util/healthz/healthz.go#L12-L21 |
161,972 | argoproj/argo-cd | reposerver/server.go | NewServer | func NewServer(gitFactory git.ClientFactory, cache *cache.Cache, tlsConfCustomizer tlsutil.ConfigCustomizer, parallelismLimit int64) (*ArgoCDRepoServer, error) {
// generate TLS cert
hosts := []string{
"localhost",
"argocd-repo-server",
}
cert, err := tlsutil.GenerateX509KeyPair(tlsutil.CertOptions{
Hosts: ... | go | func NewServer(gitFactory git.ClientFactory, cache *cache.Cache, tlsConfCustomizer tlsutil.ConfigCustomizer, parallelismLimit int64) (*ArgoCDRepoServer, error) {
// generate TLS cert
hosts := []string{
"localhost",
"argocd-repo-server",
}
cert, err := tlsutil.GenerateX509KeyPair(tlsutil.CertOptions{
Hosts: ... | [
"func",
"NewServer",
"(",
"gitFactory",
"git",
".",
"ClientFactory",
",",
"cache",
"*",
"cache",
".",
"Cache",
",",
"tlsConfCustomizer",
"tlsutil",
".",
"ConfigCustomizer",
",",
"parallelismLimit",
"int64",
")",
"(",
"*",
"ArgoCDRepoServer",
",",
"error",
")",
... | // NewServer returns a new instance of the Argo CD Repo server | [
"NewServer",
"returns",
"a",
"new",
"instance",
"of",
"the",
"Argo",
"CD",
"Repo",
"server"
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/reposerver/server.go#L31-L65 |
161,973 | argoproj/argo-cd | reposerver/server.go | CreateGRPC | func (a *ArgoCDRepoServer) CreateGRPC() *grpc.Server {
server := grpc.NewServer(a.opts...)
version.RegisterVersionServiceServer(server, &version.Server{})
manifestService := repository.NewService(a.gitFactory, a.cache, a.parallelismLimit)
repository.RegisterRepoServerServiceServer(server, manifestService)
// Regi... | go | func (a *ArgoCDRepoServer) CreateGRPC() *grpc.Server {
server := grpc.NewServer(a.opts...)
version.RegisterVersionServiceServer(server, &version.Server{})
manifestService := repository.NewService(a.gitFactory, a.cache, a.parallelismLimit)
repository.RegisterRepoServerServiceServer(server, manifestService)
// Regi... | [
"func",
"(",
"a",
"*",
"ArgoCDRepoServer",
")",
"CreateGRPC",
"(",
")",
"*",
"grpc",
".",
"Server",
"{",
"server",
":=",
"grpc",
".",
"NewServer",
"(",
"a",
".",
"opts",
"...",
")",
"\n",
"version",
".",
"RegisterVersionServiceServer",
"(",
"server",
","... | // CreateGRPC creates new configured grpc server | [
"CreateGRPC",
"creates",
"new",
"configured",
"grpc",
"server"
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/reposerver/server.go#L68-L78 |
161,974 | argoproj/argo-cd | server/account/account.pb.gw.go | RegisterAccountServiceHandler | func RegisterAccountServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error {
return RegisterAccountServiceHandlerClient(ctx, mux, NewAccountServiceClient(conn))
} | go | func RegisterAccountServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error {
return RegisterAccountServiceHandlerClient(ctx, mux, NewAccountServiceClient(conn))
} | [
"func",
"RegisterAccountServiceHandler",
"(",
"ctx",
"context",
".",
"Context",
",",
"mux",
"*",
"runtime",
".",
"ServeMux",
",",
"conn",
"*",
"grpc",
".",
"ClientConn",
")",
"error",
"{",
"return",
"RegisterAccountServiceHandlerClient",
"(",
"ctx",
",",
"mux",
... | // RegisterAccountServiceHandler registers the http handlers for service AccountService to "mux".
// The handlers forward requests to the grpc endpoint over "conn". | [
"RegisterAccountServiceHandler",
"registers",
"the",
"http",
"handlers",
"for",
"service",
"AccountService",
"to",
"mux",
".",
"The",
"handlers",
"forward",
"requests",
"to",
"the",
"grpc",
"endpoint",
"over",
"conn",
"."
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/server/account/account.pb.gw.go#L71-L73 |
161,975 | argoproj/argo-cd | util/db/repository.go | ListRepoURLs | func (db *db) ListRepoURLs(ctx context.Context) ([]string, error) {
s, err := db.settingsMgr.GetSettings()
if err != nil {
return nil, err
}
urls := make([]string, len(s.Repositories))
for i := range s.Repositories {
urls[i] = s.Repositories[i].URL
}
return urls, nil
} | go | func (db *db) ListRepoURLs(ctx context.Context) ([]string, error) {
s, err := db.settingsMgr.GetSettings()
if err != nil {
return nil, err
}
urls := make([]string, len(s.Repositories))
for i := range s.Repositories {
urls[i] = s.Repositories[i].URL
}
return urls, nil
} | [
"func",
"(",
"db",
"*",
"db",
")",
"ListRepoURLs",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"[",
"]",
"string",
",",
"error",
")",
"{",
"s",
",",
"err",
":=",
"db",
".",
"settingsMgr",
".",
"GetSettings",
"(",
")",
"\n",
"if",
"err",
"!="... | // ListRepoURLs returns list of repositories | [
"ListRepoURLs",
"returns",
"list",
"of",
"repositories"
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/util/db/repository.go#L29-L40 |
161,976 | argoproj/argo-cd | util/db/repository.go | CreateRepository | func (db *db) CreateRepository(ctx context.Context, r *appsv1.Repository) (*appsv1.Repository, error) {
s, err := db.settingsMgr.GetSettings()
if err != nil {
return nil, err
}
index := getRepositoryIndex(s, r.Repo)
if index > -1 {
return nil, status.Errorf(codes.AlreadyExists, "repository '%s' already exists... | go | func (db *db) CreateRepository(ctx context.Context, r *appsv1.Repository) (*appsv1.Repository, error) {
s, err := db.settingsMgr.GetSettings()
if err != nil {
return nil, err
}
index := getRepositoryIndex(s, r.Repo)
if index > -1 {
return nil, status.Errorf(codes.AlreadyExists, "repository '%s' already exists... | [
"func",
"(",
"db",
"*",
"db",
")",
"CreateRepository",
"(",
"ctx",
"context",
".",
"Context",
",",
"r",
"*",
"appsv1",
".",
"Repository",
")",
"(",
"*",
"appsv1",
".",
"Repository",
",",
"error",
")",
"{",
"s",
",",
"err",
":=",
"db",
".",
"setting... | // CreateRepository creates a repository | [
"CreateRepository",
"creates",
"a",
"repository"
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/util/db/repository.go#L43-L80 |
161,977 | argoproj/argo-cd | util/db/repository.go | GetRepository | func (db *db) GetRepository(ctx context.Context, repoURL string) (*appsv1.Repository, error) {
s, err := db.settingsMgr.GetSettings()
if err != nil {
return nil, err
}
index := getRepositoryIndex(s, repoURL)
if index < 0 {
return nil, status.Errorf(codes.NotFound, "repo '%s' not found", repoURL)
}
repo, er... | go | func (db *db) GetRepository(ctx context.Context, repoURL string) (*appsv1.Repository, error) {
s, err := db.settingsMgr.GetSettings()
if err != nil {
return nil, err
}
index := getRepositoryIndex(s, repoURL)
if index < 0 {
return nil, status.Errorf(codes.NotFound, "repo '%s' not found", repoURL)
}
repo, er... | [
"func",
"(",
"db",
"*",
"db",
")",
"GetRepository",
"(",
"ctx",
"context",
".",
"Context",
",",
"repoURL",
"string",
")",
"(",
"*",
"appsv1",
".",
"Repository",
",",
"error",
")",
"{",
"s",
",",
"err",
":=",
"db",
".",
"settingsMgr",
".",
"GetSetting... | // GetRepository returns a repository by URL | [
"GetRepository",
"returns",
"a",
"repository",
"by",
"URL"
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/util/db/repository.go#L83-L116 |
161,978 | argoproj/argo-cd | util/db/repository.go | UpdateRepository | func (db *db) UpdateRepository(ctx context.Context, r *appsv1.Repository) (*appsv1.Repository, error) {
s, err := db.settingsMgr.GetSettings()
if err != nil {
return nil, err
}
index := getRepositoryIndex(s, r.Repo)
if index < 0 {
return nil, status.Errorf(codes.NotFound, "repo '%s' not found", r.Repo)
}
r... | go | func (db *db) UpdateRepository(ctx context.Context, r *appsv1.Repository) (*appsv1.Repository, error) {
s, err := db.settingsMgr.GetSettings()
if err != nil {
return nil, err
}
index := getRepositoryIndex(s, r.Repo)
if index < 0 {
return nil, status.Errorf(codes.NotFound, "repo '%s' not found", r.Repo)
}
r... | [
"func",
"(",
"db",
"*",
"db",
")",
"UpdateRepository",
"(",
"ctx",
"context",
".",
"Context",
",",
"r",
"*",
"appsv1",
".",
"Repository",
")",
"(",
"*",
"appsv1",
".",
"Repository",
",",
"error",
")",
"{",
"s",
",",
"err",
":=",
"db",
".",
"setting... | // UpdateRepository updates a repository | [
"UpdateRepository",
"updates",
"a",
"repository"
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/util/db/repository.go#L133-L155 |
161,979 | argoproj/argo-cd | util/keylock.go | NewKeyLock | func NewKeyLock() *KeyLock {
return &KeyLock{
giantLock: sync.RWMutex{},
locks: map[string]*sync.Mutex{},
}
} | go | func NewKeyLock() *KeyLock {
return &KeyLock{
giantLock: sync.RWMutex{},
locks: map[string]*sync.Mutex{},
}
} | [
"func",
"NewKeyLock",
"(",
")",
"*",
"KeyLock",
"{",
"return",
"&",
"KeyLock",
"{",
"giantLock",
":",
"sync",
".",
"RWMutex",
"{",
"}",
",",
"locks",
":",
"map",
"[",
"string",
"]",
"*",
"sync",
".",
"Mutex",
"{",
"}",
",",
"}",
"\n",
"}"
] | // NewKeyLock creates new instance of KeyLock | [
"NewKeyLock",
"creates",
"new",
"instance",
"of",
"KeyLock"
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/util/keylock.go#L12-L17 |
161,980 | argoproj/argo-cd | util/helm/helm.go | NewHelmApp | func NewHelmApp(path string, helmRepos []*argoappv1.HelmRepository) Helm {
return &helm{path: path, helmRepos: helmRepos}
} | go | func NewHelmApp(path string, helmRepos []*argoappv1.HelmRepository) Helm {
return &helm{path: path, helmRepos: helmRepos}
} | [
"func",
"NewHelmApp",
"(",
"path",
"string",
",",
"helmRepos",
"[",
"]",
"*",
"argoappv1",
".",
"HelmRepository",
")",
"Helm",
"{",
"return",
"&",
"helm",
"{",
"path",
":",
"path",
",",
"helmRepos",
":",
"helmRepos",
"}",
"\n",
"}"
] | // NewHelmApp create a new wrapper to run commands on the `helm` command-line tool. | [
"NewHelmApp",
"create",
"a",
"new",
"wrapper",
"to",
"run",
"commands",
"on",
"the",
"helm",
"command",
"-",
"line",
"tool",
"."
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/util/helm/helm.go#L40-L42 |
161,981 | argoproj/argo-cd | util/jwt/jwt.go | MapClaims | func MapClaims(claims jwtgo.Claims) (jwtgo.MapClaims, error) {
claimsBytes, err := json.Marshal(claims)
if err != nil {
return nil, err
}
var mapClaims jwtgo.MapClaims
err = json.Unmarshal(claimsBytes, &mapClaims)
if err != nil {
return nil, err
}
return mapClaims, nil
} | go | func MapClaims(claims jwtgo.Claims) (jwtgo.MapClaims, error) {
claimsBytes, err := json.Marshal(claims)
if err != nil {
return nil, err
}
var mapClaims jwtgo.MapClaims
err = json.Unmarshal(claimsBytes, &mapClaims)
if err != nil {
return nil, err
}
return mapClaims, nil
} | [
"func",
"MapClaims",
"(",
"claims",
"jwtgo",
".",
"Claims",
")",
"(",
"jwtgo",
".",
"MapClaims",
",",
"error",
")",
"{",
"claimsBytes",
",",
"err",
":=",
"json",
".",
"Marshal",
"(",
"claims",
")",
"\n",
"if",
"err",
"!=",
"nil",
"{",
"return",
"nil"... | // MapClaims converts a jwt.Claims to a MapClaims | [
"MapClaims",
"converts",
"a",
"jwt",
".",
"Claims",
"to",
"a",
"MapClaims"
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/util/jwt/jwt.go#L11-L22 |
161,982 | argoproj/argo-cd | util/jwt/jwt.go | GetField | func GetField(claims jwtgo.MapClaims, fieldName string) string {
if fieldIf, ok := claims[fieldName]; ok {
if field, ok := fieldIf.(string); ok {
return field
}
}
return ""
} | go | func GetField(claims jwtgo.MapClaims, fieldName string) string {
if fieldIf, ok := claims[fieldName]; ok {
if field, ok := fieldIf.(string); ok {
return field
}
}
return ""
} | [
"func",
"GetField",
"(",
"claims",
"jwtgo",
".",
"MapClaims",
",",
"fieldName",
"string",
")",
"string",
"{",
"if",
"fieldIf",
",",
"ok",
":=",
"claims",
"[",
"fieldName",
"]",
";",
"ok",
"{",
"if",
"field",
",",
"ok",
":=",
"fieldIf",
".",
"(",
"str... | // GetField extracts a field from the claims as a string | [
"GetField",
"extracts",
"a",
"field",
"from",
"the",
"claims",
"as",
"a",
"string"
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/util/jwt/jwt.go#L25-L32 |
161,983 | argoproj/argo-cd | util/jwt/jwt.go | GetGroups | func GetGroups(claims jwtgo.MapClaims) []string {
groups := make([]string, 0)
groupsIf, ok := claims["groups"]
if !ok {
return groups
}
groupIfList, ok := groupsIf.([]interface{})
if !ok {
return groups
}
for _, groupIf := range groupIfList {
group, ok := groupIf.(string)
if ok {
groups = append(grou... | go | func GetGroups(claims jwtgo.MapClaims) []string {
groups := make([]string, 0)
groupsIf, ok := claims["groups"]
if !ok {
return groups
}
groupIfList, ok := groupsIf.([]interface{})
if !ok {
return groups
}
for _, groupIf := range groupIfList {
group, ok := groupIf.(string)
if ok {
groups = append(grou... | [
"func",
"GetGroups",
"(",
"claims",
"jwtgo",
".",
"MapClaims",
")",
"[",
"]",
"string",
"{",
"groups",
":=",
"make",
"(",
"[",
"]",
"string",
",",
"0",
")",
"\n",
"groupsIf",
",",
"ok",
":=",
"claims",
"[",
"\"",
"\"",
"]",
"\n",
"if",
"!",
"ok",... | // GetGroups extracts the groups from a claims | [
"GetGroups",
"extracts",
"the",
"groups",
"from",
"a",
"claims"
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/util/jwt/jwt.go#L35-L52 |
161,984 | argoproj/argo-cd | util/jwt/jwt.go | GetIssuedAt | func GetIssuedAt(m jwtgo.MapClaims) (int64, error) {
switch iat := m["iat"].(type) {
case float64:
return int64(iat), nil
case json.Number:
return iat.Int64()
case int64:
return iat, nil
default:
return 0, fmt.Errorf("iat '%v' is not a number", iat)
}
} | go | func GetIssuedAt(m jwtgo.MapClaims) (int64, error) {
switch iat := m["iat"].(type) {
case float64:
return int64(iat), nil
case json.Number:
return iat.Int64()
case int64:
return iat, nil
default:
return 0, fmt.Errorf("iat '%v' is not a number", iat)
}
} | [
"func",
"GetIssuedAt",
"(",
"m",
"jwtgo",
".",
"MapClaims",
")",
"(",
"int64",
",",
"error",
")",
"{",
"switch",
"iat",
":=",
"m",
"[",
"\"",
"\"",
"]",
".",
"(",
"type",
")",
"{",
"case",
"float64",
":",
"return",
"int64",
"(",
"iat",
")",
",",
... | // GetIssuedAt returns the issued at as an int64 | [
"GetIssuedAt",
"returns",
"the",
"issued",
"at",
"as",
"an",
"int64"
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/util/jwt/jwt.go#L55-L66 |
161,985 | argoproj/argo-cd | cmd/argocd/commands/repo.go | NewRepoCommand | func NewRepoCommand(clientOpts *argocdclient.ClientOptions) *cobra.Command {
var command = &cobra.Command{
Use: "repo",
Short: "Manage git repository credentials",
Run: func(c *cobra.Command, args []string) {
c.HelpFunc()(c, args)
os.Exit(1)
},
}
command.AddCommand(NewRepoAddCommand(clientOpts))
co... | go | func NewRepoCommand(clientOpts *argocdclient.ClientOptions) *cobra.Command {
var command = &cobra.Command{
Use: "repo",
Short: "Manage git repository credentials",
Run: func(c *cobra.Command, args []string) {
c.HelpFunc()(c, args)
os.Exit(1)
},
}
command.AddCommand(NewRepoAddCommand(clientOpts))
co... | [
"func",
"NewRepoCommand",
"(",
"clientOpts",
"*",
"argocdclient",
".",
"ClientOptions",
")",
"*",
"cobra",
".",
"Command",
"{",
"var",
"command",
"=",
"&",
"cobra",
".",
"Command",
"{",
"Use",
":",
"\"",
"\"",
",",
"Short",
":",
"\"",
"\"",
",",
"Run",... | // NewRepoCommand returns a new instance of an `argocd repo` command | [
"NewRepoCommand",
"returns",
"a",
"new",
"instance",
"of",
"an",
"argocd",
"repo",
"command"
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/cmd/argocd/commands/repo.go#L23-L37 |
161,986 | argoproj/argo-cd | cmd/argocd/commands/repo.go | NewRepoAddCommand | func NewRepoAddCommand(clientOpts *argocdclient.ClientOptions) *cobra.Command {
var (
repo appsv1.Repository
upsert bool
sshPrivateKeyPath string
insecureIgnoreHostKey bool
)
var command = &cobra.Command{
Use: "add REPO",
Short: "Add git repository credentials",
Ru... | go | func NewRepoAddCommand(clientOpts *argocdclient.ClientOptions) *cobra.Command {
var (
repo appsv1.Repository
upsert bool
sshPrivateKeyPath string
insecureIgnoreHostKey bool
)
var command = &cobra.Command{
Use: "add REPO",
Short: "Add git repository credentials",
Ru... | [
"func",
"NewRepoAddCommand",
"(",
"clientOpts",
"*",
"argocdclient",
".",
"ClientOptions",
")",
"*",
"cobra",
".",
"Command",
"{",
"var",
"(",
"repo",
"appsv1",
".",
"Repository",
"\n",
"upsert",
"bool",
"\n",
"sshPrivateKeyPath",
"string",
"\n",
"insecureIgnore... | // NewRepoAddCommand returns a new instance of an `argocd repo add` command | [
"NewRepoAddCommand",
"returns",
"a",
"new",
"instance",
"of",
"an",
"argocd",
"repo",
"add",
"command"
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/cmd/argocd/commands/repo.go#L40-L96 |
161,987 | argoproj/argo-cd | cmd/argocd/commands/repo.go | NewRepoRemoveCommand | func NewRepoRemoveCommand(clientOpts *argocdclient.ClientOptions) *cobra.Command {
var command = &cobra.Command{
Use: "rm REPO",
Short: "Remove git repository credentials",
Run: func(c *cobra.Command, args []string) {
if len(args) == 0 {
c.HelpFunc()(c, args)
os.Exit(1)
}
conn, repoIf := argoc... | go | func NewRepoRemoveCommand(clientOpts *argocdclient.ClientOptions) *cobra.Command {
var command = &cobra.Command{
Use: "rm REPO",
Short: "Remove git repository credentials",
Run: func(c *cobra.Command, args []string) {
if len(args) == 0 {
c.HelpFunc()(c, args)
os.Exit(1)
}
conn, repoIf := argoc... | [
"func",
"NewRepoRemoveCommand",
"(",
"clientOpts",
"*",
"argocdclient",
".",
"ClientOptions",
")",
"*",
"cobra",
".",
"Command",
"{",
"var",
"command",
"=",
"&",
"cobra",
".",
"Command",
"{",
"Use",
":",
"\"",
"\"",
",",
"Short",
":",
"\"",
"\"",
",",
... | // NewRepoRemoveCommand returns a new instance of an `argocd repo list` command | [
"NewRepoRemoveCommand",
"returns",
"a",
"new",
"instance",
"of",
"an",
"argocd",
"repo",
"list",
"command"
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/cmd/argocd/commands/repo.go#L99-L117 |
161,988 | argoproj/argo-cd | cmd/argocd/commands/repo.go | NewRepoListCommand | func NewRepoListCommand(clientOpts *argocdclient.ClientOptions) *cobra.Command {
var command = &cobra.Command{
Use: "list",
Short: "List configured repositories",
Run: func(c *cobra.Command, args []string) {
conn, repoIf := argocdclient.NewClientOrDie(clientOpts).NewRepoClientOrDie()
defer util.Close(con... | go | func NewRepoListCommand(clientOpts *argocdclient.ClientOptions) *cobra.Command {
var command = &cobra.Command{
Use: "list",
Short: "List configured repositories",
Run: func(c *cobra.Command, args []string) {
conn, repoIf := argocdclient.NewClientOrDie(clientOpts).NewRepoClientOrDie()
defer util.Close(con... | [
"func",
"NewRepoListCommand",
"(",
"clientOpts",
"*",
"argocdclient",
".",
"ClientOptions",
")",
"*",
"cobra",
".",
"Command",
"{",
"var",
"command",
"=",
"&",
"cobra",
".",
"Command",
"{",
"Use",
":",
"\"",
"\"",
",",
"Short",
":",
"\"",
"\"",
",",
"R... | // NewRepoListCommand returns a new instance of an `argocd repo rm` command | [
"NewRepoListCommand",
"returns",
"a",
"new",
"instance",
"of",
"an",
"argocd",
"repo",
"rm",
"command"
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/cmd/argocd/commands/repo.go#L120-L138 |
161,989 | argoproj/argo-cd | util/kube/ctl.go | isSupportedVerb | func isSupportedVerb(apiResource *metav1.APIResource, verb string) bool {
for _, v := range apiResource.Verbs {
if v == verb {
return true
}
}
return false
} | go | func isSupportedVerb(apiResource *metav1.APIResource, verb string) bool {
for _, v := range apiResource.Verbs {
if v == verb {
return true
}
}
return false
} | [
"func",
"isSupportedVerb",
"(",
"apiResource",
"*",
"metav1",
".",
"APIResource",
",",
"verb",
"string",
")",
"bool",
"{",
"for",
"_",
",",
"v",
":=",
"range",
"apiResource",
".",
"Verbs",
"{",
"if",
"v",
"==",
"verb",
"{",
"return",
"true",
"\n",
"}",... | // isSupportedVerb returns whether or not a APIResource supports a specific verb | [
"isSupportedVerb",
"returns",
"whether",
"or",
"not",
"a",
"APIResource",
"supports",
"a",
"specific",
"verb"
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/util/kube/ctl.go#L113-L120 |
161,990 | argoproj/argo-cd | util/kube/ctl.go | GetResource | func (k KubectlCmd) GetResource(config *rest.Config, gvk schema.GroupVersionKind, name string, namespace string) (*unstructured.Unstructured, error) {
dynamicIf, err := dynamic.NewForConfig(config)
if err != nil {
return nil, err
}
disco, err := discovery.NewDiscoveryClientForConfig(config)
if err != nil {
ret... | go | func (k KubectlCmd) GetResource(config *rest.Config, gvk schema.GroupVersionKind, name string, namespace string) (*unstructured.Unstructured, error) {
dynamicIf, err := dynamic.NewForConfig(config)
if err != nil {
return nil, err
}
disco, err := discovery.NewDiscoveryClientForConfig(config)
if err != nil {
ret... | [
"func",
"(",
"k",
"KubectlCmd",
")",
"GetResource",
"(",
"config",
"*",
"rest",
".",
"Config",
",",
"gvk",
"schema",
".",
"GroupVersionKind",
",",
"name",
"string",
",",
"namespace",
"string",
")",
"(",
"*",
"unstructured",
".",
"Unstructured",
",",
"error... | // GetResource returns resource | [
"GetResource",
"returns",
"resource"
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/util/kube/ctl.go#L133-L149 |
161,991 | argoproj/argo-cd | util/kube/ctl.go | PatchResource | func (k KubectlCmd) PatchResource(config *rest.Config, gvk schema.GroupVersionKind, name string, namespace string, patchType types.PatchType, patchBytes []byte) (*unstructured.Unstructured, error) {
dynamicIf, err := dynamic.NewForConfig(config)
if err != nil {
return nil, err
}
disco, err := discovery.NewDiscove... | go | func (k KubectlCmd) PatchResource(config *rest.Config, gvk schema.GroupVersionKind, name string, namespace string, patchType types.PatchType, patchBytes []byte) (*unstructured.Unstructured, error) {
dynamicIf, err := dynamic.NewForConfig(config)
if err != nil {
return nil, err
}
disco, err := discovery.NewDiscove... | [
"func",
"(",
"k",
"KubectlCmd",
")",
"PatchResource",
"(",
"config",
"*",
"rest",
".",
"Config",
",",
"gvk",
"schema",
".",
"GroupVersionKind",
",",
"name",
"string",
",",
"namespace",
"string",
",",
"patchType",
"types",
".",
"PatchType",
",",
"patchBytes",... | // PatchResource patches resource | [
"PatchResource",
"patches",
"resource"
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/util/kube/ctl.go#L152-L168 |
161,992 | argoproj/argo-cd | util/kube/ctl.go | DeleteResource | func (k KubectlCmd) DeleteResource(config *rest.Config, gvk schema.GroupVersionKind, name string, namespace string, forceDelete bool) error {
dynamicIf, err := dynamic.NewForConfig(config)
if err != nil {
return err
}
disco, err := discovery.NewDiscoveryClientForConfig(config)
if err != nil {
return err
}
ap... | go | func (k KubectlCmd) DeleteResource(config *rest.Config, gvk schema.GroupVersionKind, name string, namespace string, forceDelete bool) error {
dynamicIf, err := dynamic.NewForConfig(config)
if err != nil {
return err
}
disco, err := discovery.NewDiscoveryClientForConfig(config)
if err != nil {
return err
}
ap... | [
"func",
"(",
"k",
"KubectlCmd",
")",
"DeleteResource",
"(",
"config",
"*",
"rest",
".",
"Config",
",",
"gvk",
"schema",
".",
"GroupVersionKind",
",",
"name",
"string",
",",
"namespace",
"string",
",",
"forceDelete",
"bool",
")",
"error",
"{",
"dynamicIf",
... | // DeleteResource deletes resource | [
"DeleteResource",
"deletes",
"resource"
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/util/kube/ctl.go#L171-L195 |
161,993 | argoproj/argo-cd | util/kube/ctl.go | ApplyResource | func (k KubectlCmd) ApplyResource(config *rest.Config, obj *unstructured.Unstructured, namespace string, dryRun, force bool) (string, error) {
log.Infof("Applying resource %s/%s in cluster: %s, namespace: %s", obj.GetKind(), obj.GetName(), config.Host, namespace)
f, err := ioutil.TempFile(util.TempDir, "")
if err !=... | go | func (k KubectlCmd) ApplyResource(config *rest.Config, obj *unstructured.Unstructured, namespace string, dryRun, force bool) (string, error) {
log.Infof("Applying resource %s/%s in cluster: %s, namespace: %s", obj.GetKind(), obj.GetName(), config.Host, namespace)
f, err := ioutil.TempFile(util.TempDir, "")
if err !=... | [
"func",
"(",
"k",
"KubectlCmd",
")",
"ApplyResource",
"(",
"config",
"*",
"rest",
".",
"Config",
",",
"obj",
"*",
"unstructured",
".",
"Unstructured",
",",
"namespace",
"string",
",",
"dryRun",
",",
"force",
"bool",
")",
"(",
"string",
",",
"error",
")",... | // ApplyResource performs an apply of a unstructured resource | [
"ApplyResource",
"performs",
"an",
"apply",
"of",
"a",
"unstructured",
"resource"
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/util/kube/ctl.go#L198-L254 |
161,994 | argoproj/argo-cd | util/settings/settings.go | GetResourceOverrides | func (mgr *SettingsManager) GetResourceOverrides() (map[string]v1alpha1.ResourceOverride, error) {
argoCDCM, err := mgr.configmaps.ConfigMaps(mgr.namespace).Get(common.ArgoCDConfigMapName)
if err != nil {
return nil, err
}
resourceOverrides, err := getResourceOverridesFromConfigMap(argoCDCM)
if err != nil {
re... | go | func (mgr *SettingsManager) GetResourceOverrides() (map[string]v1alpha1.ResourceOverride, error) {
argoCDCM, err := mgr.configmaps.ConfigMaps(mgr.namespace).Get(common.ArgoCDConfigMapName)
if err != nil {
return nil, err
}
resourceOverrides, err := getResourceOverridesFromConfigMap(argoCDCM)
if err != nil {
re... | [
"func",
"(",
"mgr",
"*",
"SettingsManager",
")",
"GetResourceOverrides",
"(",
")",
"(",
"map",
"[",
"string",
"]",
"v1alpha1",
".",
"ResourceOverride",
",",
"error",
")",
"{",
"argoCDCM",
",",
"err",
":=",
"mgr",
".",
"configmaps",
".",
"ConfigMaps",
"(",
... | // GetResouceOverrides loads Resource Overrides from argocd-cm ConfigMap | [
"GetResouceOverrides",
"loads",
"Resource",
"Overrides",
"from",
"argocd",
"-",
"cm",
"ConfigMap"
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/util/settings/settings.go#L178-L189 |
161,995 | argoproj/argo-cd | util/settings/settings.go | GetSettings | func (mgr *SettingsManager) GetSettings() (*ArgoCDSettings, error) {
err := mgr.ensureSynced(false)
if err != nil {
return nil, err
}
argoCDCM, err := mgr.configmaps.ConfigMaps(mgr.namespace).Get(common.ArgoCDConfigMapName)
if err != nil {
return nil, err
}
argoCDSecret, err := mgr.secrets.Secrets(mgr.namesp... | go | func (mgr *SettingsManager) GetSettings() (*ArgoCDSettings, error) {
err := mgr.ensureSynced(false)
if err != nil {
return nil, err
}
argoCDCM, err := mgr.configmaps.ConfigMaps(mgr.namespace).Get(common.ArgoCDConfigMapName)
if err != nil {
return nil, err
}
argoCDSecret, err := mgr.secrets.Secrets(mgr.namesp... | [
"func",
"(",
"mgr",
"*",
"SettingsManager",
")",
"GetSettings",
"(",
")",
"(",
"*",
"ArgoCDSettings",
",",
"error",
")",
"{",
"err",
":=",
"mgr",
".",
"ensureSynced",
"(",
"false",
")",
"\n",
"if",
"err",
"!=",
"nil",
"{",
"return",
"nil",
",",
"err"... | // GetSettings retrieves settings from the ArgoCDConfigMap and secret. | [
"GetSettings",
"retrieves",
"settings",
"from",
"the",
"ArgoCDConfigMap",
"and",
"secret",
"."
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/util/settings/settings.go#L192-L217 |
161,996 | argoproj/argo-cd | util/settings/settings.go | updateSettingsFromSecret | func updateSettingsFromSecret(settings *ArgoCDSettings, argoCDSecret *apiv1.Secret) error {
var errs []error
adminPasswordHash, ok := argoCDSecret.Data[settingAdminPasswordHashKey]
if ok {
settings.AdminPasswordHash = string(adminPasswordHash)
} else {
errs = append(errs, &incompleteSettingsError{message: "admi... | go | func updateSettingsFromSecret(settings *ArgoCDSettings, argoCDSecret *apiv1.Secret) error {
var errs []error
adminPasswordHash, ok := argoCDSecret.Data[settingAdminPasswordHashKey]
if ok {
settings.AdminPasswordHash = string(adminPasswordHash)
} else {
errs = append(errs, &incompleteSettingsError{message: "admi... | [
"func",
"updateSettingsFromSecret",
"(",
"settings",
"*",
"ArgoCDSettings",
",",
"argoCDSecret",
"*",
"apiv1",
".",
"Secret",
")",
"error",
"{",
"var",
"errs",
"[",
"]",
"error",
"\n",
"adminPasswordHash",
",",
"ok",
":=",
"argoCDSecret",
".",
"Data",
"[",
"... | // updateSettingsFromSecret transfers settings from a Kubernetes secret into an ArgoCDSettings struct. | [
"updateSettingsFromSecret",
"transfers",
"settings",
"from",
"a",
"Kubernetes",
"secret",
"into",
"an",
"ArgoCDSettings",
"struct",
"."
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/util/settings/settings.go#L433-L482 |
161,997 | argoproj/argo-cd | util/settings/settings.go | NewSettingsManager | func NewSettingsManager(ctx context.Context, clientset kubernetes.Interface, namespace string) *SettingsManager {
mgr := &SettingsManager{
ctx: ctx,
clientset: clientset,
namespace: namespace,
mutex: &sync.Mutex{},
}
return mgr
} | go | func NewSettingsManager(ctx context.Context, clientset kubernetes.Interface, namespace string) *SettingsManager {
mgr := &SettingsManager{
ctx: ctx,
clientset: clientset,
namespace: namespace,
mutex: &sync.Mutex{},
}
return mgr
} | [
"func",
"NewSettingsManager",
"(",
"ctx",
"context",
".",
"Context",
",",
"clientset",
"kubernetes",
".",
"Interface",
",",
"namespace",
"string",
")",
"*",
"SettingsManager",
"{",
"mgr",
":=",
"&",
"SettingsManager",
"{",
"ctx",
":",
"ctx",
",",
"clientset",
... | // NewSettingsManager generates a new SettingsManager pointer and returns it | [
"NewSettingsManager",
"generates",
"a",
"new",
"SettingsManager",
"pointer",
"and",
"returns",
"it"
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/util/settings/settings.go#L637-L647 |
161,998 | argoproj/argo-cd | util/settings/settings.go | IsSSOConfigured | func (a *ArgoCDSettings) IsSSOConfigured() bool {
if a.IsDexConfigured() {
return true
}
if a.OIDCConfig() != nil {
return true
}
return false
} | go | func (a *ArgoCDSettings) IsSSOConfigured() bool {
if a.IsDexConfigured() {
return true
}
if a.OIDCConfig() != nil {
return true
}
return false
} | [
"func",
"(",
"a",
"*",
"ArgoCDSettings",
")",
"IsSSOConfigured",
"(",
")",
"bool",
"{",
"if",
"a",
".",
"IsDexConfigured",
"(",
")",
"{",
"return",
"true",
"\n",
"}",
"\n",
"if",
"a",
".",
"OIDCConfig",
"(",
")",
"!=",
"nil",
"{",
"return",
"true",
... | // IsSSOConfigured returns whether or not single-sign-on is configured | [
"IsSSOConfigured",
"returns",
"whether",
"or",
"not",
"single",
"-",
"sign",
"-",
"on",
"is",
"configured"
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/util/settings/settings.go#L654-L662 |
161,999 | argoproj/argo-cd | util/settings/settings.go | TLSConfig | func (a *ArgoCDSettings) TLSConfig() *tls.Config {
if a.Certificate == nil {
return nil
}
certPool := x509.NewCertPool()
pemCertBytes, _ := tlsutil.EncodeX509KeyPair(*a.Certificate)
ok := certPool.AppendCertsFromPEM(pemCertBytes)
if !ok {
panic("bad certs")
}
return &tls.Config{
RootCAs: certPool,
}
} | go | func (a *ArgoCDSettings) TLSConfig() *tls.Config {
if a.Certificate == nil {
return nil
}
certPool := x509.NewCertPool()
pemCertBytes, _ := tlsutil.EncodeX509KeyPair(*a.Certificate)
ok := certPool.AppendCertsFromPEM(pemCertBytes)
if !ok {
panic("bad certs")
}
return &tls.Config{
RootCAs: certPool,
}
} | [
"func",
"(",
"a",
"*",
"ArgoCDSettings",
")",
"TLSConfig",
"(",
")",
"*",
"tls",
".",
"Config",
"{",
"if",
"a",
".",
"Certificate",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"certPool",
":=",
"x509",
".",
"NewCertPool",
"(",
")",
"\n",
"p... | // TLSConfig returns a tls.Config with the configured certificates | [
"TLSConfig",
"returns",
"a",
"tls",
".",
"Config",
"with",
"the",
"configured",
"certificates"
] | 5c353a12f2c67d8ab0d5d9aa619c9059c5261640 | https://github.com/argoproj/argo-cd/blob/5c353a12f2c67d8ab0d5d9aa619c9059c5261640/util/settings/settings.go#L692-L705 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.